Skip to content

Commit

Permalink
Bug 738173 - Entity references in XML code command are incorrectly ha…
Browse files Browse the repository at this point in the history
…ndled
  • Loading branch information
Dimitri van Heesch committed Dec 23, 2014
1 parent 5e962c9 commit 3021657
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/docparser.cpp
Expand Up @@ -5163,6 +5163,10 @@ int DocPara::handleStartCode()
{
lang="."+lang;
}
if (g_xmlComment)
{
g_token->verb = substitute(substitute(g_token->verb,"&lt;","<"),"&gt;",">");
}
// search for the first non-whitespace line, index is stored in li
int i=0,li=0,l=g_token->verb.length();
while (i<l && (g_token->verb.at(i)==' ' || g_token->verb.at(i)=='\n'))
Expand Down

0 comments on commit 3021657

Please sign in to comment.