There's a way of dealing with this: the preserve helper. It replaces all newlines with XHTML newline escape characters, which Haml won't mess with. If you're using the textarea helper, you might want to use the "~" character; it works like "preserve", except it only replaces the characters within "<pre>" and "<textarea>" tags. So, for example:
~ textarea :textile_content - Nathan pimpmaster wrote: > Apparently if you use HAML for forms which contain a text field, then > it will automatically indent the contents of the field on save to > match the surrounding html structure. > > If you happen to be using textile or markdown, then the results are > quite disastrous. > > It took me a while to nail the problem down, but until we can sort > this out, I'm gonna have to stick with good old ERB for admin forms. > > What a shame.. ERB makes me feel like a dinosaur! > > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
