mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-24 04:53:32 -06:00
[chore]: Bump github.com/tdewolff/minify/v2 from 2.22.4 to 2.23.0
Bumps [github.com/tdewolff/minify/v2](https://github.com/tdewolff/minify) from 2.22.4 to 2.23.0. - [Release notes](https://github.com/tdewolff/minify/releases) - [Commits](https://github.com/tdewolff/minify/compare/v2.22.4...v2.23.0) --- updated-dependencies: - dependency-name: github.com/tdewolff/minify/v2 dependency-version: 2.23.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
parent
e263d23622
commit
ffc7ebd799
7 changed files with 56 additions and 19 deletions
11
vendor/github.com/tdewolff/minify/v2/html/html.go
generated
vendored
11
vendor/github.com/tdewolff/minify/v2/html/html.go
generated
vendored
|
|
@ -145,11 +145,11 @@ func (o *Minifier) Minify(m *minify.M, w io.Writer, r io.Reader, _ map[string]st
|
|||
w.Write(t.Data)
|
||||
}
|
||||
omitSpace = false
|
||||
case html.TemplateToken:
|
||||
w.Write(t.Data)
|
||||
omitSpace = false
|
||||
case html.TextToken:
|
||||
if t.HasTemplate {
|
||||
w.Write(t.Data)
|
||||
omitSpace = parse.IsWhitespace(t.Data[len(t.Data)-1])
|
||||
} else if rawTagHash != 0 {
|
||||
if rawTagHash != 0 && !t.HasTemplate {
|
||||
if rawTagHash == Style || rawTagHash == Script || rawTagHash == Iframe {
|
||||
var mimetype []byte
|
||||
var params map[string]string
|
||||
|
|
@ -196,7 +196,7 @@ func (o *Minifier) Minify(m *minify.M, w io.Writer, r io.Reader, _ map[string]st
|
|||
t.Data = t.Data[:len(t.Data)-1]
|
||||
omitSpace = false
|
||||
break
|
||||
} else if next.TokenType == html.TextToken && !parse.IsAllWhitespace(next.Data) {
|
||||
} else if next.TokenType == html.TextToken && !parse.IsAllWhitespace(next.Data) || next.TokenType == html.TemplateToken {
|
||||
// stop looking when text encountered
|
||||
break
|
||||
} else if next.TokenType == html.StartTagToken || next.TokenType == html.EndTagToken || next.TokenType == html.SvgToken || next.TokenType == html.MathToken {
|
||||
|
|
@ -215,7 +215,6 @@ func (o *Minifier) Minify(m *minify.M, w io.Writer, r io.Reader, _ map[string]st
|
|||
i++
|
||||
}
|
||||
}
|
||||
|
||||
w.Write(t.Data)
|
||||
}
|
||||
case html.StartTagToken, html.EndTagToken:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue