HtmlMin icon indicating copy to clipboard operation
HtmlMin copied to clipboard

`sizes` and `srcset` value are not trim...

Open jimblue opened this issue 11 months ago • 0 comments

Hi,

I've notice that sizes and srcset value are not trim...

For exemple, the following HTML source:

<source
  type="image/webp"
  srcset="
    /images/cat-360.webp 360w,
    /images/cat-720.webp 720w,
    /images/cat-1440.webp 1440w
  "
/>

is minnify like this:

<source type="image/webp" srcset=" /images/cat-360.webp 360w, /images/cat-720.webp 720w, /images/cat-1440.webp 1440w  "/>

when it should returns:

<source type="image/webp" srcset="/images/cat-360.webp 360w, /images/cat-720.webp 720w, /images/cat-1440.webp 1440w"/>

jimblue avatar Aug 01 '23 00:08 jimblue