From 036846fcceaa11523bd48358f3a38735045993bd Mon Sep 17 00:00:00 2001 From: RunasSudo Date: Sat, 14 Sep 2019 23:01:50 +1000 Subject: [PATCH] Fix RTF output when beginning with an indented paragraph --- legalmd/rtf_renderer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/legalmd/rtf_renderer.py b/legalmd/rtf_renderer.py index d1cfb4d..7661608 100644 --- a/legalmd/rtf_renderer.py +++ b/legalmd/rtf_renderer.py @@ -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\paperh\margl\margr\margt\margb{\header\f0\fs16\tqr\tx \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),