PDA

View Full Version : Without hacking, is there a way to stop vB from applying nl2br() on my text?


nick1presta
04-29-2007, 09:10 PM
I created custom BBCode for console output ().
However, the newlines are converted to <br /> which wouldn't pose a problem except that the division which holds the text inside the [CLI] tags has "whitespace: pre" applied to it so tabs and such are preserved. This means that all newlines are "double lines" because of the initial newline plus the <br />.

Without hacking the source, is there a way to stop the conversion of nl2br()?

Thanks in advance.

akanevsky
04-29-2007, 09:15 PM
No, I do not believe there is a way to do that.

nick1presta
04-30-2007, 12:30 AM
I'm an idiot for not thinking of this before:

Just "remove" the line breaks.

pre.someClass br { display: none; }