Cura-CustomJobPrefix icon indicating copy to clipboard operation
Cura-CustomJobPrefix copied to clipboard

Leading space in postfix gets removed after project open

Open hijomojo opened this issue 3 years ago • 1 comments

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!

hijomojo avatar Jul 10 '21 01:07 hijomojo

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.

RoCkHeLuCk avatar Nov 12 '23 18:11 RoCkHeLuCk