Sha256: fe1fd7b16ffce63b4426358264eb9fe039b5006ce3b328f51590e193ad42517a
Contents?: true
Size: 358 Bytes
Versions: 24
Compression:
Stored size: 358 Bytes
Contents
'use strict'; /** * Remove empty lines before a node. Mutates the node. * * @param {import('postcss').Node} node * @param {'\n' | '\r\n'} newline */ function removeEmptyLinesAfter(node, newline) { node.raws.after = node.raws.after ? node.raws.after.replace(/(\r?\n\s*\r?\n)+/g, newline) : ''; return node; } module.exports = removeEmptyLinesAfter;
Version data entries
24 entries across 24 versions & 1 rubygems