Posted by Jim Higson on 11/18/05 11:23
Toby Inkster wrote:
> Andy Dingley wrote:
>
>> You use Perl rather than SSI because there's probably a regex in there
>> that recognises a blank line and turns it into </p><p> markup.
>
> s/^\s*$/<\/p><p>/g;
>
Except the g probably isn't needed, unless you need the abilty to detect
more than one blank line per line :)
Navigation:
[Reply to this message]
|