public
/
html-minifier.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
88e09b0
)
fix #178
author
sqrt
<sqrt@entless.org>
Mon, 2 Jun 2014 23:38:59 +0000
(
01:38
+0200)
committer
sqrt
<sqrt@entless.org>
Mon, 2 Jun 2014 23:38:59 +0000
(
01:38
+0200)
src/htmlminifier.js
patch
|
blob
|
history
diff --git
a/src/htmlminifier.js
b/src/htmlminifier.js
index
cf419c5
..
97fa0a9
100644
(file)
--- a/
src/htmlminifier.js
+++ b/
src/htmlminifier.js
@@
-37,7
+37,7
@@
}
function collapseWhitespace(str) {
- return str ? str.replace(/
\s
+/g, ' ') : str;
+ return str ? str.replace(/
[\t\n\r ]
+/g, ' ') : str;
}
function collapseWhitespaceSmart(str, prevTag, nextTag, options) {