From ad4715242a2d4747902ed55afe43fdde700b7621 Mon Sep 17 00:00:00 2001 From: albert-github Date: Thu, 10 Jun 2021 13:05:11 +0200 Subject: bug_765867 Ampersand not rendered correctly in HTML Help index Corresponds to issue #5994 In the index the (index.hhk) the special HTML characters were not escaped (as done for the index.hhc (see HtmlHelp::addContentsItem). This is corrected. --- src/htmlhelp.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/htmlhelp.cpp b/src/htmlhelp.cpp index 9887616..f776fa4 100644 --- a/src/htmlhelp.cpp +++ b/src/htmlhelp.cpp @@ -262,7 +262,7 @@ void HtmlHelpIndex::writeFields(std::ostream &t) t << "
  • "; t << ""; - t << "" + t << "" "\n"; } else @@ -272,14 +272,14 @@ void HtmlHelpIndex::writeFields(std::ostream &t) t << "
  • "; t << ""; - t << "" + t << "" "\n"; } else { t << "
  • "; - t << ""; - t << "" + t << ""; + t << "" "\n"; } } @@ -299,7 +299,7 @@ void HtmlHelpIndex::writeFields(std::ostream &t) t << "
  • "; t << ""; - t << "" + t << "" "\n"; } } -- cgit v0.12