Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

removeEmptyLinesAfter.js 358B

123456789101112131415
  1. 'use strict';
  2. /**
  3. * Remove empty lines before a node. Mutates the node.
  4. *
  5. * @param {import('postcss').Node} node
  6. * @param {'\n' | '\r\n'} newline
  7. */
  8. function removeEmptyLinesAfter(node, newline) {
  9. node.raws.after = node.raws.after ? node.raws.after.replace(/(\r?\n\s*\r?\n)+/g, newline) : '';
  10. return node;
  11. }
  12. module.exports = removeEmptyLinesAfter;