Terence Eden. He has a beard and is smiling.

Terence Eden’s Blog

Theme Switcher:

Twitter and Linebreaks

· 6 comments · 300 words · Viewed ~28,315 times


As any student of computer science knows, line breaks are confusing. There are styles of line breaks unique to Unix, Mac and Windows - so what should a web renderer do when faced with a newline command? In HTML, it's simple, they should be ignored. But what when it is user generated text, not HTML? This was a problem I faced when trying to get Dabr to render the ASCII art produced by Aral…