feat: fix pandoc-tex-numbering style error by patch
This commit is contained in:
13
pandoc/numbering-caption-delimiter.diff
Normal file
13
pandoc/numbering-caption-delimiter.diff
Normal 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)
|
||||
|
||||
Reference in New Issue
Block a user