The problem I ran into was maintaining the inline state long enough to get back to the close tag and remove the indentation on the contained tags. If you checked the type of the tag on close and ignored cascading for inline block elements, you'd probably be able to dump the class variable... although it is bound to be a little messier than that.
It might be useful to have some sort of state object to cache the line data, like tabs, type of previous tag(@to_close_stack), etc. Also, the logic for adding lines and tags goes through two layers of 'push', so it didn't seem like there was any one place (yet) to control the newline behavior. I'm not sure which parts of this are required by the caching at the moment. The way I implemented it is kind of a hack, but I didn't want to move heaps of your code around; not sure how comfortable you'd be with that ;) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Haml" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/haml?hl=en -~----------~----~----~----~------~----~------~--~---
