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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Multi-line html breaks #172

Open
jbasoo opened this issue Apr 3, 2023 · 1 comment
Open

[Bug] Multi-line html breaks #172

jbasoo opened this issue Apr 3, 2023 · 1 comment
Assignees
Labels
Type: Bug Something isn't working as expected.

Comments

@jbasoo
Copy link

jbasoo commented Apr 3, 2023

馃悶 Bug Report

Describe the bug

Minifying multi-line HTML elements results in the opening tag name and first attribute merging when using tabs.


Is this a regression?

Probably not, possibly related to #16 ?


To Reproduce

Minifying a multi line element such as the following

<div>
	<img
		srcset="elva-fairy-480w.jpg 480w, elva-fairy-800w.jpg 800w"
		sizes="(max-width: 600px) 480px,
					 800px"
		src="elva-fairy-800w.jpg"
		alt="Elva dressed as a fairy" />
</div>

Results in merged img and srcset

<div><imgsrcset="elva-fairy-480w.jpg 480w, elva-fairy-800w.jpg 800w"sizes="(max-width: 600px) 480px, 800px"src="elva-fairy-800w.jpg"alt="Elva dressed as a fairy" /></div>

Expected behaviour

A space should be present between the tag name and attribute


Media prove

N/A


Your environment

  • OS: MacOS 13.2.1
  • Node version: v14.20.0
  • Npm version: 9.3.1
  • Browser name and version: N/A
  • VSCode: 1.76.2

Additional context

N/A

@jbasoo jbasoo added the Type: Bug Something isn't working as expected. label Apr 3, 2023
@welcome
Copy link

welcome bot commented Apr 3, 2023

Thanks for opening your first issue in Josee9988/project-template! Be sure to follow the issue template and provide every bit of information to help the developers!

@jbasoo jbasoo changed the title [Bug] [Bug] Multi-line html breaks Apr 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Something isn't working as expected.
Projects
None yet
Development

No branches or pull requests

2 participants