Просмотр исходного кода

* No need to check standalone if no tag

Michaël Van Canneyt 2 лет назад
Родитель
Сommit
16d2a8eb86
1 измененных файлов с 1 добавлено и 1 удалено
  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.