diff --git a/utils/fpdoc/dw_latex.pp b/utils/fpdoc/dw_latex.pp index 9f8b5e8de7..78341d8122 100644 --- a/utils/fpdoc/dw_latex.pp +++ b/utils/fpdoc/dw_latex.pp @@ -676,7 +676,7 @@ procedure TLatexWriter.StartUnitOverview(AModuleName,AModuleLabel : String); begin WriteLnF('\begin{FPCltable}{lr}{%s}{%s:0units}', - [Format(SDocUsedUnitsByUnitXY, [AModuleName]), AModuleName]); + [Format(SDocUsedUnitsByUnitXY, [EscapeText(AModuleName)]), AModuleName]); WriteLn('Name & Page \\ \hline'); end;