Skip to content

Support images using CR #129

@xZise

Description

@xZise

Currently the regex only allows LF and CRLF as line breaks, while the plugin for Elegoo printers in Cura and Prusa-/OrcaSlicer uses only CR. For example file-cr.txt is a file created with Cura where I removed everything after the first gcode to reduce file size.

While the regexes already support all three styles of newlines, the file is loaded in binary-mode which uses only LF as new lines.

As the file is decoded anyway, maybe using open(gcode_filename, "r", encoding="utf8", errors="ignore") would be a possible alternative?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions