Skip to content

Commit

Permalink
Bug 626172 - Latex $projectname with "&" gets no escaped
Browse files Browse the repository at this point in the history
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
  • Loading branch information
albert-github committed Jan 4, 2014
1 parent 45934e8 commit 586b3b6
Showing 1 changed file with 20 additions and 8 deletions.
28 changes: 20 additions & 8 deletions src/latexgen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -607,10 +607,16 @@ void LatexGenerator::startIndexSection(IndexSections is)
else
{
QCString header = fileToString(latexHeader);
t << substituteKeywords(header,0,
Config_getString("PROJECT_NAME"),
Config_getString("PROJECT_NUMBER"),
Config_getString("PROJECT_BRIEF"));
QGString genStringName;
FTextStream tgName(&genStringName);
filterLatexString(tgName, Config_getString("PROJECT_NAME"), FALSE,FALSE,FALSE);
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;
Expand Down Expand Up @@ -1005,10 +1011,16 @@ void LatexGenerator::endIndexSection(IndexSections is)
else
{
QCString footer = fileToString(latexFooter);
t << substituteKeywords(footer,0,
Config_getString("PROJECT_NAME"),
Config_getString("PROJECT_NUMBER"),
Config_getString("PROJECT_BRIEF"));
QGString genStringName;
FTextStream tgName(&genStringName);
filterLatexString(tgName, Config_getString("PROJECT_NAME"), FALSE,FALSE,FALSE);
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;
}
Expand Down

0 comments on commit 586b3b6

Please sign in to comment.