From f24afbe9e2d347aae9f38b29d7fc468be16ba6b2 Mon Sep 17 00:00:00 2001 From: benadha Date: Fri, 7 Jan 2022 05:53:47 +0700 Subject: Hotfix: adjust starting_line for inline style --- epy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'epy.py') 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, -- cgit