angular-template-formatter
angular-template-formatter copied to clipboard
Bug with <pre><code> tags
If you have a <code>
tag in a <pre>
tag then every time you format the document it adds a new line inside the start of the <pre
> tag. This will keep adding new lines to the <pre>
tag endlessly.
The formatter should ignore <pre>
tags as they preserve whitespace.
Example:
<pre><code>{{ someProp }}</code></pre>
Will turn into:
<pre>
<code>{{ someProp }}</code></pre>