[pmwiki-users] Word wrap problem
Joachim Durchholz
jo at durchholz.org
Mon Apr 18 23:12:57 CDT 2005
Patrick R. Michaud wrote:
> I just came up with another option -- we can give the wiki administrator
> an option to break preformatted text lines that are longer than
> some number of characters (as set by the wiki administrator).
> Would this work? The lines beginning with spaces would still be
> preformatted, but wouldn't be so long as to extend off the right
> side of the page.
>
> Comments?
There's no good column to break at. People with a wide screen will be
unhappy if the admin sets it to anything less than 40, people with a
narrow screen will be unhappy if the admin sets it to anything above 30.
More philosphically, pre-formatted text is, well, preformatted. If you
want the browser to wrap at line end, simply don't use <pre> (or the
corresponding CSS). If a site doesn't have preformatted text, or
preformatted text is just too much of a pain to endure, simply switch it
off. Or, to the very least, remove the markup that translates
indentation as preformatted text.
Regards,
Jo
More information about the pmwiki-users
mailing list