Hello, So far I really love Haml, but I have an issue with it where it comes to preformatted text.I have a fairly large amount of preformatted text (generated on the fly by a Rails helper) that I'm trying to include into my page. Using the :preserve filter, it /looks/ fine, but in the source it's all on one line, word-wrapped to about thirty, and completely indecipherable.
I discussed this briefly with Nex3 on IRC, but he had to run. While writing this message, though, I did have an idea: would it be possible to add another tag prefix, using either a _ (underscore) or a | (pipe), to tell Haml that the tag's indentation (or at least its content) should be reset? Nex3 had mentioned that Haml couldn't determine when it was safe to perserve the literal newlines because it automatically indents text, but if you used | to reset indentation, it seems like it would be safer for Haml to do. If that was possible, I think "%pre|<" would work perfectly for my purposes. Otherwise, some advice would be very much appreciated! Thanks in advance, ~Jonathan Castello --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
