nex3/haml — Issue #486: html2haml and multiline titles
Author: denispeplin
Created: 2012-01-25 07:25:15+00:00
State: open

It seems a bug in html2haml:

When converting erb code like this

<%= site_name %>: <%= yield :title %>

<%#= stylesheet_link_tag :all %>

it produces this:

%title
= site_name
\: #{yield :title}
= stylesheet_link_tag 'sprite.css'

So all header after 'title' tag included into this tag. In html it looks like:

Some title
<link href="/assets/sprite.css?body=1" media="screen" rel="stylesheet" type="text/css" />
.....

The bug was found when I tried to use erb2haml gem, which uses html2haml executable from haml gem.