Uutiset:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu
Advertisement:

Question: Code Block Formating

Aloittaja grandslam, helmikuu 23, 2006, 03:16:21 AP

« edellinen - seuraava »

grandslam

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 [nofollow]

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


[nofollow]grandslam
I could bomb you, I could shoot you, and I could fall on you...

Advertisement: