prusa3d / PrusaSlicer

G-code generator for 3D printers (RepRap, Makerbot, Ultimaker etc.)
https://www.prusa3d.com/prusaslicer/
GNU Affero General Public License v3.0
7.41k stars 1.88k forks source link

Profile Config: inconsistent parsing of `print/start_gcode` vs `filament/start_filament_gcode` #12629

Open Andrei-Pozolotin opened 1 month ago

Andrei-Pozolotin commented 1 month ago

Description of the bug

While working on a custom python parsing and building of config.ini profile files, a bug is discovered: when encoding multi-line custom gcode commands, there is an inconsistent parsing and encoding of the print/start_gcode vs the filament/start_filament_gcode, namely, in the PrusaSlicer cpp code base:

The bug manifests itself as following in the UI, when selecting a custom config.ini in the preset list:

The bug can also be confirmed by a basic config file search in the repository: file search for start_gcode = vs file search for start_filament_gcode =

This bug also affects other similar custom gcode config entries.

This issue is a request to:

Project file & How to reproduce

N/A

Checklist of files included above

Version of PrusaSlicer

Version 2.7.4+linux-x64-GTK3

Operating system

Linux work3 6.7.9-arch1-1 #1 SMP PREEMPT_DYNAMIC Fri, 08 Mar 2024 01:59:01 +0000 x86_64 GNU/Linux

Printer model

N/A