Commit 836af2f9 authored by Dimitri van Heesch's avatar Dimitri van Heesch
Browse files

Fixed difference between generated XML schema and XML files for HTML entities

parent f9b80aff
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -475,11 +475,14 @@ 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);
    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";
    }
  }
}

/*! @brief Routine to check if the entries of the html_entities are numbered correctly
 *  @details in case of a mismatch a warning message is given.