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

Minify incorrectly removes spaces after </code> element that contains a template #703

Closed
infogulch opened this issue May 19, 2024 · 1 comment

Comments

@infogulch
Copy link

infogulch commented May 19, 2024

<code> is an inline element but minify removes spaces after a closing </code> tag where the code element contains a template tag:

<p>Hello, <code>{{""}}</code> abc</p>

...incorrectly minifies to (note the missing space before abc):

<p>Hello, <code>{{""}}</code>abc</p>

In contrast, this:

<p>Hello, <code></code> abc</p>

... correctly minifies to this:

<p>Hello, <code></code> abc</p>
@tdewolff
Copy link
Owner

Thanks Joe, this has been fixed in the commit above.

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

No branches or pull requests

2 participants