Allow linebreaks in table cells
This commit is contained in:
parent
071e6db304
commit
d1ab5a6c3d
@ -205,11 +205,11 @@ class RTFRenderer(mistletoe.base_renderer.BaseRenderer):
|
|||||||
if token.colnum == 0 and token.label:
|
if token.colnum == 0 and token.label:
|
||||||
return format(r'{<rownum>. <content>\intbl\cell}',
|
return format(r'{<rownum>. <content>\intbl\cell}',
|
||||||
rownum=token.label,
|
rownum=token.label,
|
||||||
content=self.render_inner(token)
|
content=self.render_inner(token).replace(r'\newline', r'\line')
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
return format(r'{<content>\intbl\cell}',
|
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):
|
def render_thematic_break(self, token):
|
||||||
|
Loading…
Reference in New Issue
Block a user