Implement basic lists in RTF output
This commit is contained in:
parent
8b6717aad9
commit
b7066c8e4e
@ -161,10 +161,15 @@ class RTFRenderer(mistletoe.base_renderer.BaseRenderer):
|
|||||||
raise Exception('NYI')
|
raise Exception('NYI')
|
||||||
|
|
||||||
def render_list(self, token):
|
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):
|
def render_list_item(self, token):
|
||||||
raise Exception('NYI')
|
return format(r'\bullet\~<content>', content=self.render_inner(token))
|
||||||
|
|
||||||
def render_table(self, token):
|
def render_table(self, token):
|
||||||
result = [format(r'{\sa0\trowd\trgaph120\trleft<lmarg>')]
|
result = [format(r'{\sa0\trowd\trgaph120\trleft<lmarg>')]
|
||||||
|
Loading…
Reference in New Issue
Block a user