summaryrefslogtreecommitdiffstats
path: root/addon/doxywizard/expert.cpp
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2018-10-04 13:24:40 (GMT)
committeralbert-github <albert.tests@gmail.com>2018-10-04 13:24:40 (GMT)
commit58d4ad3cd25569f09b31c4b80bc145477c6d61cb (patch)
tree9a71b0c23fc0d6f24fcc935bb9e02ec16a226334 /addon/doxywizard/expert.cpp
parentd7d4d5c443887cc63211febe40d43f26dfe41bc0 (diff)
downloadDoxygen-58d4ad3cd25569f09b31c4b80bc145477c6d61cb.zip
Doxygen-58d4ad3cd25569f09b31c4b80bc145477c6d61cb.tar.gz
Doxygen-58d4ad3cd25569f09b31c4b80bc145477c6d61cb.tar.bz2
Bug 702265 - Generated Doxyfile differs from result of doxygen -u
See to it that the output from 'doxygen' and 'doxywizard' give the same result, difference was only in whitespace. - space after '#' was already implemented - implemented now that line endings are conform text layout (Qt 3 name: IO_Translate, Qt 4 name: QIODevice::Text) - implement no space after '=' in case of an empty string or empty string list.
Diffstat (limited to 'addon/doxywizard/expert.cpp')
-rw-r--r--addon/doxywizard/expert.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/addon/doxywizard/expert.cpp b/addon/doxywizard/expert.cpp
index 66a0955..44dea78 100644
--- a/addon/doxywizard/expert.cpp
+++ b/addon/doxywizard/expert.cpp
@@ -765,9 +765,10 @@ void Expert::saveTopic(QTextStream &t,QDomElement &elem,QTextCodec *codec,
t << convertToComment(option->templateDocs());
t << endl;
}
- t << name.leftJustified(MAX_OPTION_LENGTH) << "= ";
- if (option)
+ t << name.leftJustified(MAX_OPTION_LENGTH) << "=";
+ if (option && !option->isEmpty())
{
+ t << " ";
option->writeValue(t,codec);
}
t << endl;