00549: Add (:linebreaks:) and (:nolinebreaks:) to the core
Description:
Many people want to have the ability to have newlines in the markup text translate to newlines upon output. This is available from Cookbook:LineBreaks? but many admins don't
seem to find it.
Perhaps (:linebreaks:)
and (:nolinebreaks:)
should just become part of the core markup?
--Pm
I think so --chr
Yes please! -- NeilHerber October 02, 2005, at 09:37 PM
Yes, and for this addition as well as a global setting
$HTMLPNewline
= '<br />';
Suggest that rendering be both the same and also be the same as if it were done manually with "\\" after every line, such that initial block styles apply throughout. like this:
->%green%test\\ one\\ two\\ three \\ |
test
one two three |
where the HTML output is
<div class='indent'><span style='color: green;' >test<br />one<br />two<br />three <br /></span></div>
and not (slashes added because linebreaks does not appear implement on the config for this page):
(:linebreaks:) ->%green%test one\\ two\\ three |
test
one |
which gets you:
<div class='indent'><span style='color: green;' >test</span>
</div>
<p>one<br />
two<br />
three
</p>
skts