Fix RTF output when beginning with an indented paragraph

This commit is contained in:
RunasSudo 2019-09-14 23:01:50 +10:00
parent 6a5c812fb0
commit 036846fcce
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A
1 changed files with 1 additions and 1 deletions

View File

@ -242,7 +242,7 @@ class RTFRenderer(mistletoe.base_renderer.BaseRenderer):
)
def render_document(self, token):
result_str = format(r'{\rtf1\deff0{\fonttbl{\f0 TeX Gyre Heros{\*\falt FreeSans}{\*\falt Liberation Sans}{\*\falt Arial};}}\paperw<paperw>\paperh<paperh>\margl<margin>\margr<margin>\margt<margin>\margb<margin>{\header\f0\fs16\tqr\tx<flushright> <title>\tab <author>}{\footer\f0\fs16\tqr\tx<flushright> <footer>\tab\chpgn}\sa<parskip>\fs1\~\fs24 <inner>}',
result_str = format(r'{\rtf1\deff0{\fonttbl{\f0 TeX Gyre Heros{\*\falt FreeSans}{\*\falt Liberation Sans}{\*\falt Arial};}}\paperw<paperw>\paperh<paperh>\margl<margin>\margr<margin>\margt<margin>\margb<margin>{\header\f0\fs16\tqr\tx<flushright> <title>\tab <author>}{\footer\f0\fs16\tqr\tx<flushright> <footer>\tab\chpgn}\fs1\~\par\sa<parskip>\fs24 <inner>}',
paperw=cm_to_twip(21),
paperh=cm_to_twip(29.7),
margin=cm_to_twip(2),