Ah, I can reproduce that. I've just pushed a fix to stable and master.

On Wed, Mar 31, 2010 at 2:52 AM, ayupmeduck <[email protected]>wrote:

> Thanks Nathan.
>
> I can reproduce this on the command line, though it's not as simple a
> I implied in my first post. Try this:
>
> ---------------------------------
> # haml
> - something = 'something'
> :javascript
>  var CRLF = "\c\n";
>  alert("#{something}");
> <script type='text/javascript'>
>  //<![CDATA[
>    var CRLF = "\c";
>    alert("something");
>  //]]>
> </script>
> ---------------------------------
>
> I can also comment the alert() call out with // and I still get the
> newline being stripped.
>
> It works fine in haml 2.2.21 - but not 2.2.22.
>
>
> On Mar 31, 2:54 am, Nathan Weizenbaum <[email protected]> wrote:
> > This is certainly not intended. I can't reproduce it, though. Does it
> happen
> > when you use Haml from the command line as well?
> >
> > On Tue, Mar 30, 2010 at 2:47 AM, ayupmeduck <[email protected]
> >wrote:
> >
> > > In haml 2.2.20 if I do this
> >
> > > :javascript
> > >  var CRLF = "\r\n";
> >
> > > then I get what I expect, ie: a Carriage Return followed by a newline
> >
> > > But in haml 2.2.22 I do the same
> >
> > > :javascript
> > >  var CRLF = "\r\n";
> >
> > > and haml strips the newline such that the browser is presented with:
> >
> > > :javascript
> > >  var CRLF = "\r";
> >
> > > Is this intended, or is it a bug?
> >
> > > Ta!
> >
> > > --
> > > 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]<haml%[email protected]><
> haml%[email protected]<haml%[email protected]>
> >.
> > > For more options, visit this group at
> > >http://groups.google.com/group/haml?hl=en.
> >
> >
>
> --
> 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] <haml%[email protected]>.
> For more options, visit this group at
> http://groups.google.com/group/haml?hl=en.
>
>

-- 
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.

Reply via email to