fix: get rid of CRLF (#5494)
This commit is contained in:
131 files changed
+2071
-2494
No files matched your search
@@ -110,11 +110,7 @@ function genericPrint(path, options, print) {
|
||||
}
|
||||
case "css-comment": {
|
||||
if (node.raws.content) {
|
||||
return (
|
||||
node.raws.content
|
||||
// there's a bug in the less parser that trailing `\r`s are included in inline comments
|
||||
.replace(/^(\/\/[^]+)\r+$/, "$1")
|
||||
);
|
||||
return node.raws.content;
|
||||
}
|
||||
const text = options.originalText.slice(
|
||||
options.locStart(node),
|
||||
|
||||
Reference in new issue
Block a user