Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed difference between generated XML schema and XML files for HTML …
…entities
  • Loading branch information
Dimitri van Heesch committed Feb 22, 2014
1 parent f9b80af commit 836af2f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/htmlentity.cpp
Expand Up @@ -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";
}
}
}

Expand Down

0 comments on commit 836af2f

Please sign in to comment.