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

Handle more kinds of overflow triggers for addendum code #863

Open
nonprofittechy opened this issue Jun 17, 2024 · 1 comment
Open

Handle more kinds of overflow triggers for addendum code #863

nonprofittechy opened this issue Jun 17, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@nonprofittechy
Copy link
Member

Sometimes when you have a PDF, it has space to list multiple names, but they don't each have a discrete box.

E.g., you can separate the names with a comma, and fit 1, 2, or 3 names, depending on how long they are.

In that scenario, we could trigger an addendum when the length of the list as a string is over a certain length. and we'd want to break the list of names at a full name, not halfway through someone's name.

Addendum doesn't really handle this yet:

  1. It doesn't have a concept of calculating the list as a string, it just knows about strings or lists, not strings turned into lists.
  2. If something is treated as a string, we don't have a way to cut off the list at an appropriate place. It will just be based on a whole word, but that might be just someone's first name, or even just part of their first name.
@nonprofittechy nonprofittechy added the enhancement New feature or request label Jun 17, 2024
@nonprofittechy
Copy link
Member Author

Maybe we need the ability to define the addendum being triggered in a code block, rather than forcing people to use the overflow_trigger method? or maybe a combined approach?

maybe: overflow_calculation_method = "trigger"?

we don't really need to mess around with the "safe value" function, we can make people have their own way to print out what they want.

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

No branches or pull requests

1 participant