diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2013-07-14 19:41:08 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2013-07-14 19:41:08 (GMT) |
commit | eda0637739b5f09299613ff4b600311028eee39f (patch) | |
tree | 40a20ca0618211ca1de6606ab667f9c7e28d0187 /src | |
parent | 4407b4cf59fbfcba2cd5d89114b19a693501c976 (diff) | |
download | Doxygen-eda0637739b5f09299613ff4b600311028eee39f.zip Doxygen-eda0637739b5f09299613ff4b600311028eee39f.tar.gz Doxygen-eda0637739b5f09299613ff4b600311028eee39f.tar.bz2 |
Make XML output adhere to MAX_INITIALIZER_LINES
Diffstat (limited to 'src')
-rw-r--r-- | src/xmlgen.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/xmlgen.cpp b/src/xmlgen.cpp index d029526..9caa935 100644 --- a/src/xmlgen.cpp +++ b/src/xmlgen.cpp @@ -889,9 +889,8 @@ static void generateXMLForMember(MemberDef *md,FTextStream &ti,FTextStream &t,De } } } - // avoid that extremely large tables are written to the output. - // todo: it's better to adhere to MAX_INITIALIZER_LINES. - if (!md->initializer().isEmpty() && md->initializer().length()<2000) + + if (md->hasOneLineInitializer() || md->hasMultiLineInitializer()) { t << " <initializer>"; linkifyText(TextGeneratorXMLImpl(t),def,md->getBodyDef(),md,md->initializer()); |