You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that any leading or trailing whitespace gets stripped out of templates. That's great and all, except for <pre> and <code> tags that really are useful because of the pre-formatted text.
The text was updated successfully, but these errors were encountered:
<script type="text/html" id="TplPoem"><![CDATA[
<h3>My poem</h2>
<pre>
Roses are red,
Violets are blue,
Sugar is sweet,
And so are you.
</pre>
]]></script>
When I render this template, I get:
My poem
Roses are red,Violets are blue,Sugar is sweet,And so are you.
What I expect to get:
My poem
Roses are red,
Violets are blue,
Sugar is sweet,
And so are you.
Ok, I see. I've already figured out a workaround for you but I won't commit the changes,yet, as these might cause issues for people that rely on unit tests (tabs and line-endings now being kept). You are free to patch your copy, though.
I noticed that any leading or trailing whitespace gets stripped out of templates. That's great and all, except for <pre> and <code> tags that really are useful because of the pre-formatted text.
The text was updated successfully, but these errors were encountered: