berteh / ScribusGenerator

Create beautiful documents with data. Open source pdf (and Scribus) template and mail-merge alternative.
http://berteh.github.io/ScribusGenerator/
MIT License
243 stars 37 forks source link

Generator python3 doesn't resolve variables in filenames #185

Closed jimadilo closed 2 years ago

jimadilo commented 2 years ago

When using a filename like:

Filename_%VAR_var%

With data like:

var

1 2 3

Filenames are resolved to:

Filename_var.pdf

Clobbering eachother.

Tested with Scribus 1.5.7 and latest ScribusGenerator as of 12/12/2021.

jimadilo commented 2 years ago

Forgot to mention that this was on Windows 10.

berteh commented 2 years ago

that's indeed not the expected behaviour. let me check it out and come back to you. if you have a fix in the meantime feel free to submit a PR. Thanks for the feedback.

berteh commented 2 years ago

being fixed in #187

berteh commented 2 years ago

is now fixed. sorry for the bug.

Kindly download python3 branch again to update. https://github.com/berteh/ScribusGenerator/archive/python3.zip

You get simultaneously a new feature to include a counter for the generated files if you like: https://github.com/berteh/ScribusGenerator/blob/python3/README.md#dynamic-output-file-location