On Tue, 2010-08-10 at 19:12 +0900, Carsten Haitzler wrote:
> 2nd sounds better - but you need to differentiate between differeing formats
> those that just insert a newline or a tab (one off inserts or one off format
> changes) vs push and pop of a format string. i'd say you need to keep matching
> pushes and pops as you describe above until they are directly together, then
> nuke them as they are empty push/pop pairs.

Exactly as I planned to do. With the new textblock redesign it's rather
easy to implement. Just check all the nodes at offset 0 from the current
node to find the closing format. Currently textblock just considers "-"
prefixed nodes as pop, it doesn't really keep anything useful that can
help us match markup pairs. So in general, if not defined specifically
otherwise, <b>a</b> is exactly the same as <b>a</> which even makes our
lives easier. I'm not sure how it is in html, but I think not allowing
cross closing/opening is reasonable, i.e: <b><u>a</b>b</u> won't work
ATM and in my pov, it's ok to let such things break (or at least not act
amazingly awesome :P).

--
Tom. 


------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to