Skip to content

Windows-style line endings break rendering #329

@muesli

Description

@muesli

Windows-style line endings \r\n break chroma's syntax highlighting. I've seen it break in different ways, but most commonly it will then render everything as spaces instead of text.

Providing a copyable text is difficult, as the GitHub interface would cleanup the line endings. GitHub also doesn't let me attach such a file to this issue.

Replacing \r\n and \r with \n before passing the source to chroma works around the problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions