aboutsummaryrefslogtreecommitdiffhomepage
path: root/vendor/github.com/tdewolff/minify/xml/xml.go
diff options
context:
space:
mode:
authorGravatar Frédéric Guillot <fred@miniflux.net>2017-12-16 11:25:18 -0800
committerGravatar Frédéric Guillot <fred@miniflux.net>2017-12-16 11:25:18 -0800
commit27196589fbd36f5f840e51b59bd6253d0f865db3 (patch)
tree4896268c735528045e4064ace92a2a75280585b8 /vendor/github.com/tdewolff/minify/xml/xml.go
parent231ebf2daa9c024fbe99277f57935444946824bd (diff)
Add FeedIcon API call and update dependencies
Diffstat (limited to 'vendor/github.com/tdewolff/minify/xml/xml.go')
-rw-r--r--vendor/github.com/tdewolff/minify/xml/xml.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/vendor/github.com/tdewolff/minify/xml/xml.go b/vendor/github.com/tdewolff/minify/xml/xml.go
index 7974484..9486e34 100644
--- a/vendor/github.com/tdewolff/minify/xml/xml.go
+++ b/vendor/github.com/tdewolff/minify/xml/xml.go
@@ -43,6 +43,9 @@ func (o *Minifier) Minify(m *minify.M, w io.Writer, r io.Reader, _ map[string]st
for {
t := *tb.Shift()
if t.TokenType == xml.CDATAToken {
+ if len(t.Text) == 0 {
+ continue
+ }
if text, useText := xml.EscapeCDATAVal(&attrByteBuffer, t.Text); useText {
t.TokenType = xml.TextToken
t.Data = text