Fix RTF output when beginning with an indented paragraph
This commit is contained in:
parent
6a5c812fb0
commit
036846fcce
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user