[pmwiki-users] Suppress HTML comments from template in output

Oliver Betz list_ob at gmx.net
Sat Feb 1 03:20:45 CST 2014

Petko Yotov wrote:

(possible to suppress <!--PageHeaderFmt--> etc. in HTML output?)

>Not with a PmWiki variable or something like this because the way the  
>template is printed, it does not know if later there wouldn't be some  
>function trying to insert HTML into the header.

I see, thanks.

Is it true that the HTML comments are not needed by a later processing
step (after processing of skins.php resp. PrintSkin)?

If so, in skins.php line 117:

 $TmplFmt[$ps][] = "<!--$k-->";

it might be possible to make the output conditional, e.g.

    {$TmplFmt[$ps][] = "<!--$k-->";}

(a better name for the TmplDisplay flag should be chosen)

Oliver Betz, Munich http://oliverbetz.de/

More information about the pmwiki-users mailing list