aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbenadha <benawiadha@gmail.com>2021-01-30 12:43:18 +0700
committerbenadha <benawiadha@gmail.com>2021-01-30 12:43:18 +0700
commit698083d90737912a75abe08d45c2d3a10c3facb3 (patch)
treec5aca4daa631857b03dfe33d190a3bf831fce0bc
parenta5318a171e2e148a389732f06c0aec0ebc4c60e7 (diff)
downloadepy-698083d90737912a75abe08d45c2d3a10c3facb3.tar.gz
Inline format: bold for header
-rwxr-xr-xepy.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/epy.py b/epy.py
index f88159b..4bf892b 100755
--- a/epy.py
+++ b/epy.py
@@ -564,6 +564,7 @@ class HTMLtoLines(HTMLParser):
sect[self.sectsindex[n]] = len(text)
if n in self.idhead:
text += [i.rjust(width//2 + len(i)//2)] + [""]
+ formatting["bold"] += [[j, 0, len(text[j])] for j in range(startline, len(text))]
elif n in self.idinde:
text += [
" "+j for j in textwrap.wrap(i, width - 3)