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

[Bug] Multiple white spaces in a string should not be reduce to one white space! #153

Open
cateyes99 opened this issue Aug 13, 2022 · 1 comment
Assignees
Labels
Type: Bug Something isn't working as expected.

Comments

@cateyes99
Copy link

🐞 Bug Report

Describe the bug

  • Give multiple white spaces in a string, after minifying the doc, the multiple spaces are reduced to only one white space 😢 I tried JSON, XML

Is this a regression?

  • Don't know.

To Reproduce

  1. Create a JSON file
{
    "title": "a     b"
}

Minifying it results in

{"title":"a b"}
  1. Create a XML file
<a>
    <b c="d     e">f     g</b>
</a>

Minifying it results in

<a><b c="d e">f g</b></a>

Expected behaviour

  • But the correct one should be the following, i.e., the multiple white spaces in the string should be preserved.
{"title":"a     b"}
<a><b c="d     e">f     g</b></a>

Media prove


Your environment

  • OS: Windows 10 Enterprise 20H2
  • Node version: 18.4.0
  • Npm version: 8.12.1
  • VSCode version: 1.69.2
  • MinifyAll version: 2.10.0

Additional context

@cateyes99 cateyes99 added the Type: Bug Something isn't working as expected. label Aug 13, 2022
@welcome
Copy link

welcome bot commented Aug 13, 2022

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!

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