Chat Inbox Favourites Watching My comments

This news was posted in the chat forum of the DontStayIn nerds group

News

Back to topics list

Pages: 1 2

Subject
Tweaks to the HTML parser
Hi guys - I've made some tweaks to the way HTML is automatically parsed.

We used to blindly replace new-lines with <br>'s. This had the unwanted side-effect that when you constructed complex HMTL (tables, for example) it would insert lots of <br> inbetween your table tags. This sucked.

Now what happens is it removes all new-lines before and after non-inline html elements (e.g. block elements like div and table), then replaces the remaining new-lines with <br>'s.

Inline elements: a, b, big, em, font, i, img, s, small, spacer, span, strike, strong, sub, sup, u

Block / invisible elements: area, blockquote, br, center, col, colgroup, div, h1, h2, h3, h4, h5, h6, hr, li, map, ol, p, pre, table, tbody, td, tfoot, th, thead, tr, ul

I think this will solve the problem, but I'm half-expecting some side-effects. If you notice any weirdness when posting html, tell me.
Reply Quote
Posted Sat 14 Jun 2008
Edited Sat 14 Jun 2008
Will do - thanks Dave - great work on the new quotes by the way. Very nice!
Reply Quote
Posted Sat 14 Jun 2008
I haven't noticed anything as yet, will keep my eyes open, As I said before tho meer, I think its awesome!
Reply Quote
Posted Sat 14 Jun 2008
Gee
The user that posted this comment has been banned from DontStayIn. To view the message, click here at your own risk.

Reply Quote
Posted Sat 14 Jun 2008
IainC said:
great work on the new quotes by the way. Very nice!

Cheers. They render at run-time too, so I can tweak the UI in future.
Reply Quote
Posted Sat 14 Jun 2008
The user that posted this comment has been banned from DontStayIn. To view the message, click here at your own risk.

Reply Quote
Posted Sat 14 Jun 2008
Next person complains about the fucking TMML system gets banned.
Who laughed: Raa, Dr-Beatz, sabret00the, AdamButterfield, spikeeee, KarlJW, DrSuave, SiTopia and Beth
Reply Quote
Posted Sat 14 Jun 2008
:-) I'm nice really.
Reply Quote
Posted Sat 14 Jun 2008


Hmmm
Reply Quote
Posted Sat 14 Jun 2008
The user that posted this comment has been banned from DontStayIn. To view the message, click here at your own risk.

Reply Quote
Posted Sat 14 Jun 2008
Who laughed: Raa, Dr-Beatz, John-Black-Implosion, SiTopia, Naked-J-Kid and Beth
Reply Quote
Posted Sat 14 Jun 2008
SiTopia said:
Then you can get an idea from the community as to whether it will work or not before you build it.

if you build it they will come.
Reply Quote
Posted Sat 14 Jun 2008
The user that posted this comment has been banned from DontStayIn. To view the message, click here at your own risk.

Who laughed: John-Black-Implosion
Reply Quote
Posted Sat 14 Jun 2008
Godamnit it hate that new fucking TMML quote system !
Who laughed: SiTopia
Reply Quote
Posted Sat 14 Jun 2008
Reply Quote
Posted Sun 15 Jun 2008
Still getting the no text error when you try and resize a pic in a post with no comments or letters.
Reply Quote
Posted Sun 15 Jun 2008
Dr-Beatz said:
Still getting the no text error when you try and resize a pic in a post with no comments or letters

Aah yes, i'll sort that.
Reply Quote
Posted Sun 15 Jun 2008
Spanktastic.
Reply Quote
Posted Sun 15 Jun 2008
DaveB-DSI said:
Spanktastic

Undocumented feature there for you Dave...

(Select text, then click "quote" from another post)
Who laughed: tickett
Reply Quote
Posted Mon 16 Jun 2008
Edited Mon 16 Jun 2008
what's changed with tmml?
Who laughed: Beth and Naked-J-Kid
Reply Quote
Posted Mon 16 Jun 2008

Pages: 1 2

Back to topics list

Post a reply

To post a comment you must first log on - use the links below to log on or create a free account.

Log in

If you've already signed-up

Sign up FREE!

If you've not used the site before

You can't post until you are logged in!

Don't Stay In mix of the week

Chat

Your browser looks like it's not compatible with our live chat box. We recommend FireFox.