alexgorbatchev/SyntaxHighlighter — Issue #70: Line brakes
Author: divideddarko
Created: 2011-12-20 18:21:23+00:00
State: open

Hey

I currently run a blog that I built myself but have an issue with syntaxhighlighter.

I can relate it down to this line of code

$article = strtr($article, array("\r\n" => '
', "\r" => '
', "\n" => '
'));

I use this so that each enter is returned as a new line in the article rather than writing

for each new line.
This unfortunately breaks the code of SH, it displays everything on the one line and where a line break should be it places
instead.

I was wondering if anyone else had this problem / a fix

Thanks for your help.