* 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:
Jonas Maebe 2012-07-25 11:49:09 +00:00
parent 31d004e056
commit 16974d2f08

View File

@ -462,9 +462,9 @@ begin
if FAllowTagParams then
begin//template tags with parameters are allowed
SLen:=Length(Src);
Result:='';
If SLen=0 then
exit;
Result:='';
SP:=PChar(Src);
P:=SP;
While (P-SP<SLen) do
@ -515,10 +515,10 @@ begin
If FParseLevel>FMaxParseDepth then
Raise ETemplateParser.CreateFmt(SErrParseDepthExceeded,[FMaxParseDepth]);
SLen:=Length(Src); // Minimum
Result:='';
If SLen=0 then
exit;
// STLen:=Length(FStartDelimiter);
Result:='';
SP:=PChar(Src);
P:=SP;
While (P-SP<SLen) do