"hugo --minify" strips spaces and preserve some new lines

When I use hugo --minify in my branch/repo:

  1. some new lines are not minified,
  2. some spaces are striped.

Window 000222
Window 000224 Window 000223

This might be related to

If a maintainer confirms this is a buggy/unwanted behavior, I can open an issue in tdewolff/minify if it’s what needs to be done.

Someone has any insight on this?