-
-
Notifications
You must be signed in to change notification settings - Fork 20
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
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
Labels
enhancementNew feature or requestNew feature or request