I noticed while testing the last one that the corner case of having an indentation longer than the target width and having both of the settings True causes a negative lim, which then causes breakTokens to diverge.
There are probably other solutions to this problem, but ensuring the indent length is of length at most limit - 1 seemed like a good start.
I noticed while testing the last one that the corner case of having an indentation longer than the target width and having both of the settings
True
causes a negativelim
, which then causesbreakTokens
to diverge.There are probably other solutions to this problem, but ensuring the indent length is of length at most
limit - 1
seemed like a good start.