prettyHTML too aggressive in eating up extra spaces
This commit is contained in:
parent
3744454076
commit
1b19e09e14
|
|
@ -46,8 +46,6 @@ const minify = function(el) {
|
|||
.replace(/>\s+</g, '><')
|
||||
.replace(/\s+/g, ' ')
|
||||
.replace(/\s>/g, '>')
|
||||
.replace(/>\s/g, '>')
|
||||
.replace(/\s</g, '<')
|
||||
.replace(/class=["']\s/g, function(match) {
|
||||
return match.replace(/\s/g, '');
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user