allow alphabetic numbering with no higher-level numeric numbering
This commit is contained in:
parent
b26a854bdb
commit
850b9db6d6
|
@ -894,7 +894,7 @@ def unique_hierarchical_prefix_numbering(entries, start_point=0):
|
||||||
if not next_match:
|
if not next_match:
|
||||||
return None
|
return None
|
||||||
next_layer_start = pos + next_match.end()
|
next_layer_start = pos + next_match.end()
|
||||||
sub_numbering = unique_hierarchical_prefix_numbering(ents_idx, start_point=next_layer_start) or alphabetic_numbering(ents_idx, next_layer_start)
|
sub_numbering = unique_hierarchical_prefix_numbering(ents_idx, start_point=next_layer_start)
|
||||||
if not sub_numbering:
|
if not sub_numbering:
|
||||||
return None
|
return None
|
||||||
for sub_idx in sub_numbering:
|
for sub_idx in sub_numbering:
|
||||||
|
@ -902,7 +902,7 @@ def unique_hierarchical_prefix_numbering(entries, start_point=0):
|
||||||
|
|
||||||
return numbering
|
return numbering
|
||||||
|
|
||||||
return None
|
return alphabetic_numbering(entries, start_point)
|
||||||
|
|
||||||
def alphabetic_numbering(entries, start_point):
|
def alphabetic_numbering(entries, start_point):
|
||||||
debug(f'Finding alphabetic numbering from start point {start_point} for {entries}')
|
debug(f'Finding alphabetic numbering from start point {start_point} for {entries}')
|
||||||
|
|
Loading…
Reference in a new issue