On Mon, 18 Dec 2000, Sander Tichelaar wrote:
> I saw that the Swiki translates the following Swiki code:
>
> <pre>
> This is some line of preformatted text.
> And this is another one.
> </pre>
>
> into the following HTML:
>
> <pre><br>
> This is some line of preformatted text.<br>
> And this is another one.<br>
> </pre><br>
>
> As far as I can see this is a bug.
It's not. Swiki by definition does not parse *any* html tags. You use them
on your own risk. The only (sort-of) exception is the Swiki-specific
<html>...</html> pair which turns off swikification inside. So you can
achieve what you want by using
<html><pre>
This is some line of preformatted text.
And this is another one.
</pre></html>
Another way to state this is: Swiki always translates a newline character
into a <br> tag *unless* the line started with a swiki-specific char.
Of course, you can add interpreting <pre>...</pre> tags by changing the
formatter :)
-- Bert