Ferrous Moon
http://www.ferrousmoon.com:80/forums/

[code] tags are broken and removes all newlines!
http://www.ferrousmoon.com:80/forums/viewtopic.php?f=55&t=3110
Page 1 of 1

Author:  hans henrik [Sat Sep 21, 2019 4:35 pm ]
Post subject:  [code] tags are broken and removes all newlines!

here is a code tag with "foo" "bar" "baz" separated by newlines inside:
Code:
foo bar baz
... but the forum removed all the newlines, because code doesn't need newlines, right? (especially if you're using python! but even if you aren't, newlines harms readability right?)

Author:  hans henrik [Sat Sep 21, 2019 4:39 pm ]
Post subject:  Re: [code] tags are broken and removes all newlines!

for a (dirty?) quickfix, just add the CSS:
Code:
.codecontent{white-space: pre-line;}
somewhere.

Page 1 of 1 All times are UTC-05:00
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/