Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Aiheen aloitti: grandslam - helmikuu 23, 2006, 03:16:21 AP

Otsikko: Question: Code Block Formating
Kirjoitti: grandslam - helmikuu 23, 2006, 03:16:21 AP
I changed in the css in the code block white-space to "pre". i made this in because some had problems with display tabs and some other small cosmetic things.
but now i have the problem that every empty line will be removed. SMF replaces the \n with <br />.
<br /> will not displayed with the "pre" option.

you can see an example here:
this is the raw code:

[code]
zeile 1

zeile 3
zeile 4

zeile 6
[/code]

and this the result:
http://codeforum.ch/index.php/topic,2652.0.html

is it possible to resolve the problem without to touch something else than the template?