Sha256: 8730433c9e41edd5e95e0a31f18b1bbec4aff4c7649a798d870a052b7d363717

Contents?: true

Size: 395 Bytes

Versions: 24

Compression:

Stored size: 395 Bytes

Contents

"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.removeEmptyLinesBefore = removeEmptyLinesBefore;

// Remove empty lines before a node. Mutates the node.
function removeEmptyLinesBefore(node
/*: postcss$node*/
, newline
/*: '\n' | '\r\n'*/
)
/*: postcss$node*/
{
  node.raws.before = node.raws.before.replace(/(\r?\n\s*\r?\n)+/g, newline);
  return node;
}

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
trusty-cms-6.3.1 node_modules/stylelint-scss/dist/utils/removeEmptyLinesBefore.js
trusty-cms-5.0.7 node_modules/stylelint-scss/dist/utils/removeEmptyLinesBefore.js
trusty-cms-5.0.6 node_modules/stylelint-scss/dist/utils/removeEmptyLinesBefore.js
trusty-cms-5.0.5 node_modules/stylelint-scss/dist/utils/removeEmptyLinesBefore.js
trusty-cms-5.0.4 node_modules/stylelint-scss/dist/utils/removeEmptyLinesBefore.js
trusty-cms-5.0.3 node_modules/stylelint-scss/dist/utils/removeEmptyLinesBefore.js
trusty-cms-5.0.2 node_modules/stylelint-scss/dist/utils/removeEmptyLinesBefore.js
trusty-cms-5.0.1 node_modules/stylelint-scss/dist/utils/removeEmptyLinesBefore.js
trusty-cms-4.3.5 node_modules/stylelint-scss/dist/utils/removeEmptyLinesBefore.js
trusty-cms-5.0.0 node_modules/stylelint-scss/dist/utils/removeEmptyLinesBefore.js
trusty-cms-4.3.4 node_modules/stylelint-scss/dist/utils/removeEmptyLinesBefore.js
trusty-cms-4.3.3 node_modules/stylelint-scss/dist/utils/removeEmptyLinesBefore.js
trusty-cms-4.3.2 node_modules/stylelint-scss/dist/utils/removeEmptyLinesBefore.js
trusty-cms-4.3.1 node_modules/stylelint-scss/dist/utils/removeEmptyLinesBefore.js
trusty-cms-4.3 node_modules/stylelint-scss/dist/utils/removeEmptyLinesBefore.js
trusty-cms-4.2.3 node_modules/stylelint-scss/dist/utils/removeEmptyLinesBefore.js
trusty-cms-4.2.2 node_modules/stylelint-scss/dist/utils/removeEmptyLinesBefore.js
trusty-cms-4.2.1 node_modules/stylelint-scss/dist/utils/removeEmptyLinesBefore.js
trusty-cms-4.2 node_modules/stylelint-scss/dist/utils/removeEmptyLinesBefore.js
trusty-cms-4.1.9 node_modules/stylelint-scss/dist/utils/removeEmptyLinesBefore.js