Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text after tag dropped #113

Closed
CodeMonkeySteve opened this issue Sep 18, 2013 · 2 comments
Closed

Text after tag dropped #113

CodeMonkeySteve opened this issue Sep 18, 2013 · 2 comments

Comments

@CodeMonkeySteve
Copy link

I'm trying to wrap a checkbox and text in a label, but HAML keeps dropping the text (parse error?). Here's a simple example:

%input{type: 'checkbox'}
Some text:

Notes:

  • Works if the text does not have a trailing colon
  • Works if the tag does not have attributes
  • Does not work with other self-closing tags (e.g. img)
@netzpirat
Copy link
Collaborator

I can clearly reproduce the bug. Seems to be an issue with attribute look ahead function... Will have a look shortly. In the meanwhile you can work around the bug by using an HTML entity like:

%input{type: 'checkbox'}
Some text: 

Thanks for reporting.

@netzpirat
Copy link
Collaborator

Fixed in netzpirat/haml-coffee@d45e49f and contained in Haml_Coffee_Assets version 1.14.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants