Interesting... I hadn't considered that trailing whitespace would be useful. Yes, Haml does cut it off, and there's no way around it at the moment. I'll see if I can work in a fix later today.
- Nathan Doug McBride wrote: > Thanks for the reply, but that only preserves the leading whitespace, > not the trailing (which only matters if you're trying to get things to > center up properly as I am). > > >>> haml_text =<<EOS >>> > %pre > ~ > + > +++++ > + > EOS > => "%pre\n ~\n + \n +++++\n + \n" <--- trailing > whitespace > >>> h = Haml::Engine.new haml_text >>> h.render >>> > => "<pre>\n +
+++++
 +
\n</pre>\n" <--- no > trailing whitespace > > If you put this in a <center> tag, you get > > + > +++++ > + > > Since the 1st and 3rd lines are only 3 chars long instead of 5. This > is a trivial example with an obvious workaround, but I have a big > ASCII logo to work with.. > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
