Commit 586b3b69 authored by albert-github's avatar albert-github

Bug 626172 - Latex $projectname with "&" gets no escaped

The variable elements in the header en footer should be converted to latex string, now they are in the format as defined in the Doxyfile
parent 45934e88
...@@ -607,10 +607,16 @@ void LatexGenerator::startIndexSection(IndexSections is) ...@@ -607,10 +607,16 @@ void LatexGenerator::startIndexSection(IndexSections is)
else else
{ {
QCString header = fileToString(latexHeader); QCString header = fileToString(latexHeader);
t << substituteKeywords(header,0, QGString genStringName;
Config_getString("PROJECT_NAME"), FTextStream tgName(&genStringName);
Config_getString("PROJECT_NUMBER"), filterLatexString(tgName, Config_getString("PROJECT_NAME"), FALSE,FALSE,FALSE);
Config_getString("PROJECT_BRIEF")); QGString genStringNumber;
FTextStream tgNumber(&genStringNumber);
filterLatexString(tgNumber, Config_getString("PROJECT_NUMBER"), FALSE,FALSE,FALSE);
QGString genStringBrief;
FTextStream tgBrief(&genStringBrief);
filterLatexString(tgBrief, Config_getString("PROJECT_BRIEF"), FALSE,FALSE,FALSE);
t << substituteKeywords(header,0, genStringName, genStringNumber, genStringBrief);
} }
} }
break; break;
...@@ -1005,10 +1011,16 @@ void LatexGenerator::endIndexSection(IndexSections is) ...@@ -1005,10 +1011,16 @@ void LatexGenerator::endIndexSection(IndexSections is)
else else
{ {
QCString footer = fileToString(latexFooter); QCString footer = fileToString(latexFooter);
t << substituteKeywords(footer,0, QGString genStringName;
Config_getString("PROJECT_NAME"), FTextStream tgName(&genStringName);
Config_getString("PROJECT_NUMBER"), filterLatexString(tgName, Config_getString("PROJECT_NAME"), FALSE,FALSE,FALSE);
Config_getString("PROJECT_BRIEF")); QGString genStringNumber;
FTextStream tgNumber(&genStringNumber);
filterLatexString(tgNumber, Config_getString("PROJECT_NUMBER"), FALSE,FALSE,FALSE);
QGString genStringBrief;
FTextStream tgBrief(&genStringBrief);
filterLatexString(tgBrief, Config_getString("PROJECT_BRIEF"), FALSE,FALSE,FALSE);
t << substituteKeywords(footer,0, genStringName, genStringNumber, genStringBrief);
} }
break; break;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment