浏览代码

* No need to check standalone if no tag

Michaël Van Canneyt 2 年之前
父节点
当前提交
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.