Browse Source

* No need to check standalone if no tag

Michaël Van Canneyt 2 years ago
parent
commit
3a4b494bf1
1 changed files with 1 additions and 1 deletions
  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.