1
0

feat: fix pandoc-tex-numbering style error by patch

This commit is contained in:
2026-06-13 19:45:37 +08:00
parent c1fbde559d
commit e956691614
3 changed files with 44 additions and 1 deletions

View File

@@ -0,0 +1,13 @@
diff --git a/pandoc_tex_numbering.py b/pandoc_tex_numbering.py
index 35e2656..d1e941b 100644
--- a/pandoc_tex_numbering.py
+++ b/pandoc_tex_numbering.py
@@ -399,7 +399,7 @@ def add_label_to_caption(num_obj, label: str, elem):
has_caption = False
if has_caption:
# If there's no caption text, we shouldnot add a colon
- label_items.extend([Str(":"), Space()])
+ label_items.extend([Space(), ])
for item in label_items[::-1]:
elem.caption.content[0].content.insert(0, item)