const char *pch;
long len;
- GetTemplateTokenString(Target, TP, 2, &pch, &len);
+ GetTemplateTokenString(Target, TP, 0, &pch, &len);
Comment = NewStrBufPlain(pch, len);
+ StrBufAppendBufPlain(Target, HKEY("<!--"), 0);
StrBufAppendTemplate(Target, TP, Comment, 1);
-
+ StrBufAppendBufPlain(Target, HKEY("-->"), 0);
FreeStrBuf(&Comment);
}
}
(It->XPectContextType != TP->Filter.ContextType)) {
LogTemplateError(
Target, "Iterator", ERR_PARM1, TP,
- "requires context of type %d, have %d",
- It->XPectContextType,
- TP->Filter.ContextType);
+ "requires context of type %s, have %s",
+ ContextName(It->XPectContextType),
+ ContextName(TP->Filter.ContextType));
return ;
}