Allow linebreaks in table cells

This commit is contained in:
RunasSudo 2019-09-15 00:32:59 +10:00
parent 071e6db304
commit d1ab5a6c3d
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A

View File

@ -205,11 +205,11 @@ class RTFRenderer(mistletoe.base_renderer.BaseRenderer):
if token.colnum == 0 and token.label:
return format(r'{<rownum>. <content>\intbl\cell}',
rownum=token.label,
content=self.render_inner(token)
content=self.render_inner(token).replace(r'\newline', r'\line')
)
else:
return format(r'{<content>\intbl\cell}',
content=self.render_inner(token)
content=self.render_inner(token).replace(r'\newline', r'\line')
)
def render_thematic_break(self, token):