From 4fcc416870f33b3ee00a0cdd156e267746a136f5 Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Sat, 3 Aug 2013 21:24:08 +0200 Subject: Using & in the project name caused invalid HTML and LaTeX output --- src/htmlgen.cpp | 10 ++++++---- src/latexgen.cpp | 8 ++++++-- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/src/htmlgen.cpp b/src/htmlgen.cpp index 30182a5..6fe61fc 100644 --- a/src/htmlgen.cpp +++ b/src/htmlgen.cpp @@ -1106,10 +1106,12 @@ static QCString substituteHtmlKeywords(const QCString &s, extraCssText = "\n"; } - if (timeStamp) { - generatedBy = theTranslator->trGeneratedAt(dateToString(TRUE), Config_getString("PROJECT_NAME")); + if (timeStamp) + { + generatedBy = theTranslator->trGeneratedAt(dateToString(TRUE), convertToHtml(Config_getString("PROJECT_NAME"))); } - else { + else + { generatedBy = theTranslator->trGeneratedBy(); } @@ -3084,7 +3086,7 @@ void HtmlGenerator::writeSearchPage() FTextStream t(&cf); t << "