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

Fix --expansion-reset-tabs limitations #369

Merged
merged 3 commits into from
Feb 6, 2022

Conversation

bszonye
Copy link
Contributor

@bszonye bszonye commented Feb 5, 2022

The --expansion-reset-tabs option was previously incompatible with
--include-blanks because it handles low card counts specially, and
blanks leave the extras card count unset. I fixed the code by
defaulting to a count of 0 in this case.

The option was also previously dependent on --expansion-dividers, and
silently ignored if the latter was not set. As there wasn't a clear
technical reason for the limitation, I removed it and moved
--expansion-reset-tabs from the Expansion Dividers group to the Divider
Tab group.

Fixes #368.

The --expansion-reset-tabs option was previously incompatible with
--include-blanks because it handles low card counts specially, and
blanks leave the "extras" card count unset. I fixed the code by
defaulting to a count of 0 in this case.

The option was also previously dependent on --expansion-dividers, and
silently ignored if the latter was not set. As there wasn't a clear
technical reason for the limitation, I removed it and moved
--expansion-reset-tabs from the Expansion Dividers group to the Divider
Tab group.
@sumpfork sumpfork self-requested a review February 6, 2022 19:30
Copy link
Owner

@sumpfork sumpfork left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm and seems to work

@sumpfork sumpfork merged commit cde8b08 into sumpfork:master Feb 6, 2022
@bszonye bszonye deleted the bradd/blanks-expansion-reset branch February 6, 2022 23:10
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.

exception when combining --include-blanks with --expansion-dividers and --expansion-reset-tabs
2 participants