mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-08 09:28:19 +02:00
* Replace strange characters with ! instead of dropping them (dropping causes duplicate labels)
git-svn-id: trunk@16285 -
This commit is contained in:
parent
747b93b7ec
commit
03774ca2c3
@ -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;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user