summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2014-02-22 12:24:59 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2014-02-22 12:24:59 (GMT)
commit836af2f9510d10f2dd7d832025f214983387b3c6 (patch)
tree303d946789490921bb02f89cb4aace0872175496 /src
parentf9b80aff6d20524dd0838aff12033fe3df66ba98 (diff)
downloadDoxygen-836af2f9510d10f2dd7d832025f214983387b3c6.zip
Doxygen-836af2f9510d10f2dd7d832025f214983387b3c6.tar.gz
Doxygen-836af2f9510d10f2dd7d832025f214983387b3c6.tar.bz2
Fixed difference between generated XML schema and XML files for HTML entities
Diffstat (limited to 'src')
-rw-r--r--src/htmlentity.cpp9
1 files 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<g_numHtmlEntities - g_numberHtmlMappedCmds;i++)
{
- QCString bareName = g_htmlEntities[i].item;
- bareName = bareName.mid(1,bareName.length()-2);
- t << " <xsd:element name=\"" << bareName << "\" type=\"docEmptyType\" />\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 << " <xsd:element name=\"" << bareName << "\" type=\"docEmptyType\" />\n";
+ }
}
}