We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e697985 commit 54461ccCopy full SHA for 54461cc
src/utilities/rules.ts
@@ -162,7 +162,8 @@ export const appendParentRuleToStore = (
162
163
export const cleanRuleRawsBefore = (node: Node | void): void => {
164
if (node && node.type === RULE_TYPE) {
165
- node.raws.before = '\n\n' + node.raws.before.replace(/\n/g, '');
+ const { before } = node.raws;
166
+ node.raws.before = '\n\n' + (before ? before.replace(/\n/g, '') : '');
167
}
168
};
169
0 commit comments