From 30216574cb189a92f27bb0e701ff31aa8cce6b83 Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Tue, 23 Dec 2014 16:26:44 +0100 Subject: [PATCH] Bug 738173 - Entity references in XML code command are incorrectly handled --- src/docparser.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/docparser.cpp b/src/docparser.cpp index 24ce165f128..509001b9407 100644 --- a/src/docparser.cpp +++ b/src/docparser.cpp @@ -5163,6 +5163,10 @@ int DocPara::handleStartCode() { lang="."+lang; } + if (g_xmlComment) + { + g_token->verb = substitute(substitute(g_token->verb,"<","<"),">",">"); + } // search for the first non-whitespace line, index is stored in li int i=0,li=0,l=g_token->verb.length(); while (iverb.at(i)==' ' || g_token->verb.at(i)=='\n'))