Jelajahi Sumber

* No need to check standalone if no tag

Michaël Van Canneyt 2 tahun lalu
induk
melakukan
3a4b494bf1
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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.