fieldOfView / Cura-CustomJobPrefix

A Cura plugin that lets the user set a custom print job prefix
GNU Affero General Public License v3.0
24 stars 5 forks source link

Leading space in postfix gets removed after project open #26

Open hijomojo opened 3 years ago

hijomojo commented 3 years ago

Hey there,

I've recently found that if I insert a space before the postfix pattern, that space gets removed (both from the project name, and the extension's settings) when a new project is opened (i.e. via opening a .3mf and picking the 'Open as Project" option.

My extension configuration is: Prefix: (none) Postfix: " {printer_type}" (ignore the quotes, they're just so you can see the space I put in) Path: (none)

Enable prefix and postfix - Yes Add '_' between jobname parts - No Sanitise jobname parts - No

Any help with or resolution of this issue would be much appreciated!

RoCkHeLuCk commented 10 months ago

Greetings everyone, I also checked this problem, both the prefix and postfix have problems with spaces at the beginning and end, it works perfectly before reloading Cura, I believe that the way of saving and loading the string is ignoring either a "Trim" in the spaces.