angular-template-formatter icon indicating copy to clipboard operation
angular-template-formatter copied to clipboard

Bug with <pre><code> tags

Open ryanknittel-fdx opened this issue 1 year ago • 0 comments

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>

ryanknittel-fdx avatar Jul 11 '22 18:07 ryanknittel-fdx