Skip to content

Commit 1e37707

Browse files
MaoSong2022MaoSong2022
authored andcommitted
feat(order_annotation.py): query at most one label to save time
1 parent 27fa68b commit 1e37707

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
@@ -154,7 +154,7 @@ def generate_float_envs_order(self):
154154
label_content = latex_content[label_start_index:label_end_index]
155155
if latex_content[end_index:label_start_index].isspace():
156156
block.labels = re.findall(label_pattern, label_content)
157-
break
157+
break
158158

159159
# 1. add labels for equations
160160
for block in self.annotations["annotations"]:

0 commit comments

Comments
 (0)