nex3/haml — Issue #491: Misleading error message re: Illegal nesting
Author: jaredbeck
Created: 2012-02-14 03:51:37+00:00
State: open

If I don't RTFM and I do this:

%p{ :style => "color:red;" }.hipsteripsum
Banh mi street art direct trade narwhal,
deserunt cred pitchfork. Before they sold out

I get this misleading error message:

Illegal nesting: content can't be both given on the same line as %span and nested within it.

Which should instead be:

Attributes should come last, dummy.