Implement basic lists in RTF output

This commit is contained in:
RunasSudo 2019-09-22 03:47:17 +10:00
parent 8b6717aad9
commit b7066c8e4e
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A

View File

@ -161,10 +161,15 @@ class RTFRenderer(mistletoe.base_renderer.BaseRenderer):
raise Exception('NYI')
def render_list(self, token):
raise Exception('NYI')
self.heading_last = False
return format(r'{\li<leftmargin> <content>}',
leftmargin=cm_to_twip(LMARG)+self.quotemargin,
content=self.render_inner(token)
)
def render_list_item(self, token):
raise Exception('NYI')
return format(r'\bullet\~<content>', content=self.render_inner(token))
def render_table(self, token):
result = [format(r'{\sa0\trowd\trgaph120\trleft<lmarg>')]