Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SG_NEXT-RECORD tag cleanup removes merge data #147

Open
JLKreider opened this issue Dec 9, 2019 · 2 comments
Open

SG_NEXT-RECORD tag cleanup removes merge data #147

JLKreider opened this issue Dec 9, 2019 · 2 comments
Labels

Comments

@JLKreider
Copy link

I've created a label document (attached) with the variable tag in each of the label text boxes and a %SG_NEXT-RECORD% tag preceding it in all but the first label text box.

If I have a space between the two tags, "%SG_NEXT-RECORD% %VAR_Name-Address%", then ScribusGenerator correctly populates the label text box from the csv file.

If I don't have a space between the two tags, "%SG_NEXT-RECORD%%VAR_Name-Address%", then ScribusGenerator deletes the first word of the data merged from the csv file.

Since works with the first example, this is not urgent at the moment. However, I suspect it's not ideal behavior. I hope the samples help. I have the scribus documents and the csv file available, but apparently they are not supported file types here. So contact me if you need them.

I'm running scribus 1.5.5 on Windows 10 64 bit. Thanks to all who make it possible!

Sample No-Space.pdf

Sample W-Space.pdf

@berteh
Copy link
Owner

berteh commented Jun 19, 2020

Thanks for the bug report and workaround. I'll try to solve this.

@berteh berteh added the bug label Jun 19, 2020
@berteh
Copy link
Owner

berteh commented Mar 8, 2021

I couldn't find an easy fix for this problem. My current workaround when the space is not wanted is to select the %SG_NEXT-RECORD% portion of the text and reduce its size (in the text editor CTRL+T). Changing its size (or style) has the effect to create a separate scribus (ITEXT) element, and thus the script can differentiate between the two tags without having to add a space.

Maybe there's a better option, if you have some interest and time feel free to look at the regular expressions in function substituteData in ScribusGeneratorBackend.py.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants