Skip to content

New code at beginning of file should be inserted after BOM #234

Description

@lwpinion

Operating System
Windows 10

Sass Version
1.55.0 (compiled with dart2js 2.18.1)

Migrator Version
1.7.1 (compiled with dart2js 2.18.0)

After using the migrator on a large number of files, I encountered a bug when it came to the styles on my home page. I dug into it and turns out when the migrator tool inserts the use rule it injected some sort of hidden character along with the line break (see screenshot).

sass-hidden-character

I am on Windows, so perhaps this is due to some sort of discrepancy with the line breaks between operating systems? Visual Studio does notify me on each file that the line endings are inconsistent; however, no matter what option I choose I still get this invisible character.

sass-line-endings

Fwiw, there's no urgency to fix this. I just went through all of my files and deleted that character before each rule.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions