Explorar o código

* No need to check standalone if no tag

Michaël Van Canneyt %!s(int64=2) %!d(string=hai) anos
pai
achega
16d2a8eb86
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/fcl-mustache/src/fpmustache.pp

+ 1 - 1
packages/fcl-mustache/src/fpmustache.pp

@@ -1147,7 +1147,7 @@ begin
     begin
     PartialPrefix := '';
     NewPos:=Pos(cStart,aTemplate,Current);
-    IsStandalone := CheckStandalone;
+    IsStandalone := (NewPos>0) and CheckStandalone;
     if NewPos=0 then
       NewPos:=Total+1;
     // Stash what we have till now.