Skip to content

Commit 77b543c

Browse files
committed
Converting tabs
1 parent 3b294a8 commit 77b543c

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

pandoc_numbering.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,22 +57,22 @@ def numbering(key, value, format, meta):
5757
length = i + 1
5858
break
5959

60-
# Convert the value to a category (eliminating the '#')
60+
# Convert the value to a category (eliminating the '#')
6161
category = stringify(value[:length - 2])
6262
if category not in count:
6363
count[category] = 0
6464
count[category] = count[category] + 1
6565

66-
# Replace the '#' by the category count
66+
# Replace the '#' by the category count
6767
value[length - 1]['c'] = str(count[category])
6868

69-
# Prepare the final text
69+
# Prepare the final text
7070
text = [Strong(value)]
7171

72-
# Add the title to the final text
72+
# Add the title to the final text
7373
if title != None:
7474
text.append(title)
75-
75+
7676
if tag != '#':
7777
# Store the numbers and the label for automatic numbering (See referencing function)
7878
numbers[tag] = value[length - 1]['c']
@@ -81,7 +81,7 @@ def numbering(key, value, format, meta):
8181
# Return the final text in a Span element embedded in a Para element
8282
return Para([Span([tag[1:], [], []], text)])
8383
else:
84-
# Return the final text in a Para element
84+
# Return the final text in a Para element
8585
return Para(text)
8686
else:
8787
# Special case where the last element is '##...'

0 commit comments

Comments
 (0)