diff options
author | benadha <benawiadha@gmail.com> | 2021-01-30 10:17:15 +0700 |
---|---|---|
committer | benadha <benawiadha@gmail.com> | 2021-01-30 10:17:15 +0700 |
commit | 85c2c24387152a6e6b76db5872a81fb430bac3b5 (patch) | |
tree | d9e8bbffcea9c9bcb00b3f99572d2b221bdf100c | |
parent | 707ae0a81cf1ce4cbe011477151aebe11bf483d0 (diff) | |
download | epy-85c2c24387152a6e6b76db5872a81fb430bac3b5.tar.gz |
Minor fix: new scheme for parsing sects
-rwxr-xr-x | epy.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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: |