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

Don't Overwrite Element Widths #25

Merged
merged 14 commits into from
Oct 14, 2019
Merged

Conversation

LagTag
Copy link
Collaborator

@LagTag LagTag commented Oct 27, 2018

Resolves #24

Running the snippet from the Issue now will return:

label_fed_number.to_zpl
>>^FWN^CF0,22^CI28^FO0,20^FB200,4,0,L,0^FDFEDERAL RN#90630 ONT. REG.# 34333^FS
label.dump_contents
>> ^XA^LL800^LH0,0^LS10^PW800^PR6^FWN^CF0,22^CI28^FO0,20^FB200,4,0,L,0^FDFEDERAL RN#90630 ONT. REG.# 34333^FS^PQ1^XZ

This PR simply checks to make sure the width of an element isn't present before assigning.

@mtking2 mtking2 merged commit 2658065 into bbulpett:master Oct 14, 2019
@mtking2 mtking2 added this to the Version 1.1.0 milestone Oct 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Element Width Overwritten by Overall Label Width
2 participants