[pmwiki-users] blank line at start of html output

Petko Yotov 5ko at 5ko.fr
Sun Apr 27 04:51:40 CDT 2014


John Rankin writes:

>
>
> > John Rankin writes:
> ...
> >> I can see a blank first line in the regular html output too, so it's not
> >> an artefact of wikipublisher's output.
> >>
> >> I am unable to figure out where pmwiki inserts this blank first line and
> >> how to prevent it. Any help would be appreciated.
> >
> > PmWiki doesn't insert a blank first line. Such lines are sometimes
> > inserted
> > by recipe which contain a closing ?> PHP tag followed by a new line. In
> > this
> > case, the backup_pages.php recipe inserts this new line.
> >
> > It is recommended to remove the closing ?> tag from all scripts, see:
> >
> >   http://www.pmwiki.org/wiki/PmWiki/DesignNotes
>
> Ah, thank you.
>
> However, I checked and include url doesn't have a closing ?> tag. I can't
> see what this script is doing that could generate an empty first line. My
> user has tested this with and without includeurl -- on his system, it
> causes an empty first line.

I didn't write that includeurl causes this, I wrote that backup_pages.php  
causes this.

Petko




More information about the pmwiki-users mailing list