|
|
@ -153,7 +153,7 @@ module.exports = config => { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// Throw away empty nodes (keep spaces)
|
|
|
// Throw away empty nodes (keep spaces)
|
|
|
if (config.removeEmptyTextNodes !== false) { |
|
|
if (config.removeEmptyTextNodes) { |
|
|
const content = node.nodeValue; |
|
|
const content = node.nodeValue; |
|
|
if (content != ' ' && !content.trim()) { |
|
|
if (content != ' ' && !content.trim()) { |
|
|
continue; |
|
|
continue; |
|
|
|