Twitter and line-breaks
I have had really busy day with regards to site updates. I've added a Twitter feed to the right bar (I also added the right bar, come to think of it), I've switched doctypes to XHTML 1.1 and moved to a new server.
I've also changed the way my BBCode-esque parser handles line-breaks. It used to try and figure out what to wrap in
tags and where to put <br/> tags, but now it just replaces carriage returns with <br/> tags. I realise this isn't semantically amazing, but the old way was convoluted, slow and always ended up causing my page not to validate properly. Until I come up with a better 'algorithm' for doing this stuff, <br/> tags will have to do.
Right... Comments... Maybe...
EDIT: I'd like to apologise to anyone who has found this page searching for "twitter line breaks" or something similar. Sorry: I have no idea how you insert a line-break into a tweet - but I am trying to find out for you :-PFirst posted: Sun, 22 Mar 2009 21:28:16 +0000