aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbenadha <benawiadha@gmail.com>2021-01-30 10:17:15 +0700
committerbenadha <benawiadha@gmail.com>2021-01-30 10:17:15 +0700
commit85c2c24387152a6e6b76db5872a81fb430bac3b5 (patch)
treed9e8bbffcea9c9bcb00b3f99572d2b221bdf100c
parent707ae0a81cf1ce4cbe011477151aebe11bf483d0 (diff)
downloadepy-85c2c24387152a6e6b76db5872a81fb430bac3b5.tar.gz
Minor fix: new scheme for parsing sects
-rwxr-xr-xepy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/epy.py b/epy.py
index 0b06f4b..761bdd7 100755
--- a/epy.py
+++ b/epy.py
@@ -561,7 +561,7 @@ class HTMLtoLines(HTMLParser):
# # i = i.replace(" (#" + findsect.group() + ") ", " "*(5+len(findsect.group())))
# sect[findsect.group()] = len(text)
if n in self.sectsindex.keys():
- sect[self.sectsindex[n]] = len(text)-1
+ sect[self.sectsindex[n]] = len(text)
if n in self.idhead:
text += [i.rjust(width//2 + len(i)//2)] + [""]
elif n in self.idinde: