[pmwiki-users] Single Space breaks wrap on entire page

Patrick R. Michaud pmichaud at pobox.com
Wed Sep 21 11:31:58 CDT 2005

On Wed, Sep 21, 2005 at 12:21:29PM -0400, Waylan Limberg wrote:
> On 9/21/05, Russell Bailey <russell-pmwiki at saberpunk.net> wrote:
> > >>Personally, having just one space affect the formatting is a little
> > >>much. Maybe a paragraph should begin with at least four spaces before
> > >>getting the pre treatment (kind of like you need four or more dashes
> > >>(-----) to make a horizontal line, but not less).
> > >
> > >This is a good point, but changing PmWiki's default here will
> > >absolutely break a lot of existing sites that depend on a single
> > >space for preformatted text.
> Yeah, I figured as much. Thought I'd share anyway. I think I'll start
> adding that as a local customization myself. Seeing as I'm not to good
> with regex, could someone post a quick and easy way to require four
> spaces?

In a local customization file:

   Markup('^ ', 'block', '/^(\\s{4})/', '<:pre,1>$1');

Demonstrated at http://www.pmwiki.org/wiki/Test/PreSpaces .


More information about the pmwiki-users mailing list