From 836af2f9510d10f2dd7d832025f214983387b3c6 Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Sat, 22 Feb 2014 13:24:59 +0100 Subject: Fixed difference between generated XML schema and XML files for HTML entities --- src/htmlentity.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/htmlentity.cpp b/src/htmlentity.cpp index 9f83991..c1a9ad0 100644 --- a/src/htmlentity.cpp +++ b/src/htmlentity.cpp @@ -475,9 +475,12 @@ void HtmlEntityMapper::writeXMLSchema(FTextStream &t) { for (int i=0;i\n"; + QCString bareName = g_htmlEntities[i].xml; + if (!bareName.isEmpty() && bareName.at(0)=='<' && bareName.right(2)=="/>") + { + bareName = bareName.mid(1,bareName.length()-3); // strip < and /> + t << " \n"; + } } } -- cgit v0.12