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

Multiline HTML interpolation fails on 1.0.24 #3062

Closed
chrisvfritz opened this issue Jun 12, 2016 · 2 comments
Closed

Multiline HTML interpolation fails on 1.0.24 #3062

chrisvfritz opened this issue Jun 12, 2016 · 2 comments
Labels

Comments

@chrisvfritz
Copy link
Contributor

Here's a minimal viable example.

Not a huge deal, but:

<pre><code>{{{
  code
}}}</pre></code>

is often preferable to:

<pre><code>
  {{{ code }}}
</pre></code>

since preformatted text would preserve the line breaks at the beginning and end of the code block.

@simplesmiler
Copy link
Member

I think it's better done with just <pre><code>{{{ code }}}</code></pre> (an I think you actually meant double brackets).

But I agree. Newline is already handled correctly in double-bracket expression, so for the consistency sake it should be handled correctly in the triple-bracket expression.

@chrisvfritz
Copy link
Contributor Author

@simplesmiler In the real-world case where I encountered this, pre and code both had attributes making that line longer and code was actually highlight(exercise.example.code), so with everything added up, splitting it out into multiple lines was much nicer. 😃 I did also mean triple brackets here, since the code was being passed through highlight.js.

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

No branches or pull requests

3 participants