aboutsummaryrefslogtreecommitdiffstats
path: root/epy.py
diff options
context:
space:
mode:
Diffstat (limited to 'epy.py')
-rwxr-xr-xepy.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/epy.py b/epy.py
index e1ed035..d68683f 100755
--- a/epy.py
+++ b/epy.py
@@ -1142,7 +1142,7 @@ class HTMLtoLines(HTMLParser):
for k in italics:
formatting.append(
InlineStyle(
- row=k.start.row,
+ row=starting_line + k.start.row,
col=k.start.col,
n_letters=k.n_letters,
attr=self.attr_italic,
@@ -1160,7 +1160,7 @@ class HTMLtoLines(HTMLParser):
for k in bolds:
formatting.append(
InlineStyle(
- row=k.start.row,
+ row=starting_line + k.start.row,
col=k.start.col,
n_letters=k.n_letters,
attr=self.attr_bold,