mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-22 22:49:37 +02:00
* Fix for the case that the begin and enddelimiter are the same
git-svn-id: trunk@15191 -
This commit is contained in:
parent
62592322e1
commit
983c0e6765
@ -492,6 +492,7 @@ begin
|
||||
else
|
||||
begin
|
||||
I:=TS-P;
|
||||
inc(TS,Length(FStartDelimiter));
|
||||
TE:=FindDelimiter(TS,FEndDelimiter,SLen-I+1);
|
||||
If (TE=Nil) then
|
||||
begin
|
||||
@ -503,7 +504,6 @@ begin
|
||||
// Add text prior to template to result
|
||||
AddToString(Result,P,I);
|
||||
// retrieve template name
|
||||
inc(TS,Length(FStartDelimiter));
|
||||
I:=TE-TS;
|
||||
Setlength(PN,I);
|
||||
Move(TS^,PN[1],I);
|
||||
|
Loading…
Reference in New Issue
Block a user