Skip to content
This repository has been archived by the owner on Sep 6, 2022. It is now read-only.

No support for multiline attributes #174

Open
avalanche1 opened this issue Oct 7, 2015 · 4 comments
Open

No support for multiline attributes #174

avalanche1 opened this issue Oct 7, 2015 · 4 comments

Comments

@avalanche1
Copy link
Contributor

div(data-html='<p>First very long line</p>' +
        '<p>Second very long line</p>' +
        '<p class="warn">Third very long line</p>')

Produces only <div data-html="<p>First very long line</p>"></div>.

@dalgard
Copy link

dalgard commented Oct 14, 2015

I believe backslash is the way to break up long strings: Multiple Lines for Long Attribute Value in Jade

I think the syntax is official, since I've seen it output from an HTML to Jade converter.

@avalanche1
Copy link
Contributor Author

Yes, converter uses backslash. But meteor jade compiler gives
Jade syntax error: Unexpected token

@dalgard
Copy link

dalgard commented Oct 14, 2015

The backslash must be written inside the string – to escape the newline. The string is ended with a quotation mark only on the final line.

@avalanche1
Copy link
Contributor Author

Neither \, nor + work here.

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

No branches or pull requests

2 participants