It works! Thx! :) 2007/12/14, Nathan Weizenbaum <[EMAIL PROTECTED]>: > > > Ah, I see. The issue is that Haml is auto-indenting the result of the > call to render to make the output look nicer. Because this includes a > <pre> tag, though, the indentation actually affects the rendering of the > document. > > Haml includes a built-in way to deal with this, though. The > find_and_preserve helper replaces all newlines within > whitespace-sensitive tags with the XML newline escape, which Haml won't > touch. All you need to do is wrap your call to render in this helper or, > alternately, use the "~" action which is a shortcut for just that. > > See http://pastie.textmate.org/128427 for examples. > > - Nathan > > Juan G. wrote: > > Sorry ;/ > > > > http://pastie.textmate.org/128395 > > > > > > On 14 dic, 03:34, Nex3 <[EMAIL PROTECTED]> wrote: > > > >> Just the screenshots aren't very useful :-p. Could you pastie the Haml > >> and ERB code and the HTML output of each? > >> > >> - Nathan > >> > >> On Dec 13, 11:13 am, "Juan Gallego" <[EMAIL PROTECTED]> wrote: > >> > >> > >>> Hi, > >>> > >>> Someone tried HAML with coderay? > >>> > >>> If the code is within a html class, HAML tab shows my coderay wrong. > >>> > >>> With erb:http://screencast.com/t/JDMBmWaJ > >>> > >>> And with haml:http://screencast.com/t/SajkizZpAV > >>> > >>> Any idea? > >>> > >>> Thx! > >>> > > > > > > > > > > > >
-- Juan Gallego Galisteo http://www.flowersinspace.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
