feat(packages): URLs are allowed many more breakpoints #1233
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Here is my proposal for #1229 - Compared to the ticket, I have ended up adding a bit more flexibility. Sounds good to me in all my tests so far (but I can't have a test submitted, as the url package needs the pdf package which needs the libtexpdf backend, not the debug backend - If I am not mistaken).
Besides a brute force test (see below), looks decent too in my "test" article:
(I would have preferred the
_
tto have a break after it, not before, but toying with the penalty settings, it was not much better with a very dense line, so I think they are quite OK finally... But of course the default penalties are at best a wild guess)The brute force test, if one wants to play with it - 12 pages of URLs 😸 - the decent scenario being of course the last.