Ver código fonte

* Replace strange characters with ! instead of dropping them (dropping causes duplicate labels)

git-svn-id: trunk@16285 -
michael 14 anos atrás
pai
commit
03774ca2c3
1 arquivos alterados com 3 adições e 1 exclusões
  1. 3 1
      utils/fpdoc/dw_latex.pp

+ 3 - 1
utils/fpdoc/dw_latex.pp

@@ -187,7 +187,9 @@ begin
   SetLength(Result, 0);
   for i := 1 to Length(S) do
     If not (S[i] in ['&','{','}','#','_','$','%','''','~','^', '\']) then
-      Result := Result + S[i];
+      Result := Result + S[i]
+    else
+      Result:=result+'!'  
 end;