Explorar o código

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

git-svn-id: trunk@16285 -
michael %!s(int64=14) %!d(string=hai) anos
pai
achega
03774ca2c3
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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;