Skip to content

Commit 2e9e786

Browse files
MaoSong2022MaoSong2022
authored andcommitted
refactor(order_annotation.py): use extend for robustness
1 parent 1e37707 commit 2e9e786

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

vrdu/order_annotation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def generate_float_envs_order(self):
153153
)
154154
label_content = latex_content[label_start_index:label_end_index]
155155
if latex_content[end_index:label_start_index].isspace():
156-
block.labels = re.findall(label_pattern, label_content)
156+
block.labels.extend(re.findall(label_pattern, label_content))
157157
break
158158

159159
# 1. add labels for equations

0 commit comments

Comments
 (0)