path: root/src/tools/qdoc/ditaxmlgenerator.cpp
diff options
authorMartin Smith <>2012-11-07 13:17:30 +0100
committerMartin Smith <>2012-11-07 14:08:14 +0100
commit3b78aa72c736b856f739123b125fdb36e9160fee (patch)
tree6c9782268fed3d8a57b38dfb3bcd2f0a047415ec /src/tools/qdoc/ditaxmlgenerator.cpp
parent3c9312453680b600a0404b324be63f81ecc6bc33 (diff)
qdoc: Removed setting of codeindent variable
All the qdocconf files in use for Qt 5.0 set the codeindent variable to 1, which prefixes each line of a snippet with one ' '. But this messes up the cutting and pasting of snippets into editors for actual use. qdoc now lets the codeindent variable be initialized to 0, and then it never changes it. This looks ok in the default formatted html output. If the html output formatted with the template CSS files also looks ok, then the codeindent variable can be removed from all the qdocconf files, since it will no longer be used by qdoc. Task number: QTBUG-27798 Change-Id: I398c57bdfc99e747ec086fbd8ddf5994cf3ee6d5 Reviewed-by: Mitch Curtis <> Reviewed-by: Jerome Pasion <>
Diffstat (limited to 'src/tools/qdoc/ditaxmlgenerator.cpp')
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tools/qdoc/ditaxmlgenerator.cpp b/src/tools/qdoc/ditaxmlgenerator.cpp
index 563df612ab..1ffbcf986c 100644
--- a/src/tools/qdoc/ditaxmlgenerator.cpp
+++ b/src/tools/qdoc/ditaxmlgenerator.cpp
@@ -573,7 +573,8 @@ void DitaXmlGenerator::initializeGenerator(const Config &config)
customHeadElements = config.getStringList(DitaXmlGenerator::format() +
Config::dot +
- codeIndent = config.getInt(CONFIG_CODEINDENT);
+ // The following line was changed to fix QTBUG-27798
+ //codeIndent = config.getInt(CONFIG_CODEINDENT);
version = config.getString(CONFIG_VERSION);
vrm = version.split(QLatin1Char('.'));