Skip to content

Commit 8f7e783

Browse files
authored
Merge pull request #1 from epexa/output-tag-patch
fix collapseWhitespace for <output> tag
2 parents 51ce10f + fe9086f commit 8f7e783

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/htmlminifier.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ function collapseWhitespace(str, options, trimLeft, trimRight, collapseAll) {
6464

6565
var createMapFromString = utils.createMapFromString;
6666
// non-empty tags that will maintain whitespace around them
67-
var inlineTags = createMapFromString('a,abbr,acronym,b,bdi,bdo,big,button,cite,code,del,dfn,em,font,i,ins,kbd,label,mark,math,nobr,object,q,rp,rt,rtc,ruby,s,samp,select,small,span,strike,strong,sub,sup,svg,textarea,time,tt,u,var');
67+
var inlineTags = createMapFromString('a,abbr,acronym,b,bdi,bdo,big,button,cite,code,del,dfn,em,font,i,ins,kbd,label,mark,math,nobr,object,output,q,rp,rt,rtc,ruby,s,samp,select,small,span,strike,strong,sub,sup,svg,textarea,time,tt,u,var');
6868
// non-empty tags that will maintain whitespace within them
6969
var inlineTextTags = createMapFromString('a,abbr,acronym,b,big,del,em,font,i,ins,kbd,mark,nobr,rp,s,samp,small,span,strike,strong,sub,sup,time,tt,u,var');
7070
// self-closing tags that will maintain whitespace around them

0 commit comments

Comments
 (0)