2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-08-23 19:50:23 +00:00

Fix abbreviation when pad decreases

This is a bizarre way to work, but it should be valid.
This commit is contained in:
Jarrod Johnson
2023-10-16 08:29:45 -04:00
parent 0434f38ea1
commit 06d18cec63

View File

@@ -106,6 +106,7 @@ class Bracketer(object):
continue # new nodename has no new number, keep going
else: # if self.sequences[n][2] != nums[n] or :
if self.diffn is not None and (n != self.diffn or
(padto < self.numlens[n][1]) or
(needpad and padto != self.numlens[n][1])):
self.flush_current()
self.sequences[n] = [[], nums[n], nums[n]]