Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

Carriage return left in CSS when compiling multiline rules with CR LF line ends #2506

@Dottenpixel

Description

@Dottenpixel

When converting from SCSS to CSS using node-sass, any multi-line properties are converted to one-line with \a escape characters to replace the new lines in the output CSS.

.class {
  height: calc(
    …long calc…
  );
}

converts to:

.class {   height: calc(\a     …long calc…\a   )'); }

In this case, I don't have control over the incoming SCSS and can't use another process to clean the new lines. Is there a way to remove these escape characters purely through node-sass?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions