Sha256: bc50e5fbe98385f72848452cfa744c820970235df3c0d49b5d4bff62ee63b82f
Contents?: true
Size: 551 Bytes
Versions: 18
Compression:
Stored size: 551 Bytes
Contents
module.exports = function cleanWhitespace(node, item, list) { // remove when first or last item in sequence if (item.next === null || item.prev === null) { list.remove(item); return; } // remove when previous node is whitespace if (item.prev.data.type === 'WhiteSpace') { list.remove(item); return; } if ((this.stylesheet !== null && this.stylesheet.children === list) || (this.block !== null && this.block.children === list)) { list.remove(item); return; } };
Version data entries
18 entries across 18 versions & 4 rubygems