summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/xmlgen.cpp5
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());