<p>
<% if condition %>
<p>
<ul>
ul text
</ul>
p text
</p>
if text
<% else %>
else text
<% end %>
</p>
Outputs this HAML:
%p
- if condition
%p
%ul
ul text
p text
if text
- else
else text
You can see that everything after the <ul> tag is at the wrong level of indentation for some reason. The - else block ends up being broken, causing a syntax error.
Using html2haml 2.0 on this snippet:
Outputs this HAML:
You can see that everything after the
<ul>
tag is at the wrong level of indentation for some reason. The- else
block ends up being broken, causing a syntax error.Very strange...