mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 08:09:28 +02:00
* empty result of IntParseString() in case the input is empty, fixes double
output lines in generated config files by fpcmkcfg such as mentioned in mantis #22505 git-svn-id: trunk@21969 -
This commit is contained in:
parent
31d004e056
commit
16974d2f08
@ -462,9 +462,9 @@ begin
|
|||||||
if FAllowTagParams then
|
if FAllowTagParams then
|
||||||
begin//template tags with parameters are allowed
|
begin//template tags with parameters are allowed
|
||||||
SLen:=Length(Src);
|
SLen:=Length(Src);
|
||||||
|
Result:='';
|
||||||
If SLen=0 then
|
If SLen=0 then
|
||||||
exit;
|
exit;
|
||||||
Result:='';
|
|
||||||
SP:=PChar(Src);
|
SP:=PChar(Src);
|
||||||
P:=SP;
|
P:=SP;
|
||||||
While (P-SP<SLen) do
|
While (P-SP<SLen) do
|
||||||
@ -515,10 +515,10 @@ begin
|
|||||||
If FParseLevel>FMaxParseDepth then
|
If FParseLevel>FMaxParseDepth then
|
||||||
Raise ETemplateParser.CreateFmt(SErrParseDepthExceeded,[FMaxParseDepth]);
|
Raise ETemplateParser.CreateFmt(SErrParseDepthExceeded,[FMaxParseDepth]);
|
||||||
SLen:=Length(Src); // Minimum
|
SLen:=Length(Src); // Minimum
|
||||||
|
Result:='';
|
||||||
If SLen=0 then
|
If SLen=0 then
|
||||||
exit;
|
exit;
|
||||||
// STLen:=Length(FStartDelimiter);
|
// STLen:=Length(FStartDelimiter);
|
||||||
Result:='';
|
|
||||||
SP:=PChar(Src);
|
SP:=PChar(Src);
|
||||||
P:=SP;
|
P:=SP;
|
||||||
While (P-SP<SLen) do
|
While (P-SP<SLen) do
|
||||||
|
Loading…
Reference in New Issue
Block a user