Python Reportlab无序列表未显示项目符号

Python Reportlab无序列表未显示项目符号,python,tinymce,pdf-generation,reportlab,rml,Python,Tinymce,Pdf Generation,Reportlab,Rml,每当用户使用TinyMCE输入无序列表时,在源代码下会是这样 <ul> <li>item 1</li> <li>item 2</li> <li>item 3</li></ul> 项目1 项目2 第3项 当它使用reportlab呈现为PDF时,它将不带项目符号显示 都在同一条线上,如下所示: 项目1项目2项目3 以下是reportlab代码: <paraStyle name="lon

每当用户使用TinyMCE输入无序列表时,在源代码下会是这样

<ul>
 <li>item 1</li>
 <li>item 2</li>
 <li>item 3</li></ul>
  • 项目1
  • 项目2
  • 第3项
当它使用reportlab呈现为PDF时,它将不带项目符号显示 都在同一条线上,如下所示:

项目1项目2项目3

以下是reportlab代码:

<paraStyle name="long_td_contents_right_notes"
    alignment="right"
    fontName="ACaslon-SemiBold"
    fontSize="8"/>



<blockTable style="blocktablestyle1" colWidths="145,{{if wide}}328{{else}}250{{endif}}">
        {{ for note in notes }}
            <tr><td align="left"><para style="long_td_contents_left">{{ rml(note.title) }}</para></td><td align="left"><para style="long_td_contents_left_notes"> {{ rml(note.body) }}</para></td></tr>
        {{endfor}}

{{注释中的注释}
{{rml(note.title)}{{rml(note.body)}}
{{endfor}}
对此,我们将不胜感激

谢谢

这起作用了

{{ for note in notes }}
        {{script}}
                notesWithBullets =  rml( note.body.replace('<li>', '&bull; ').replace('</p>','<br>').replace('</ul>','<br>').replace('</li>', '<br>'))
        {{endscript}}
             <tr><td align="left"><para style="long_td_contents_left">{{ rml(note.title) }}</para></td><td align="left"><para style="long_td_contents_left">{{ rml(notesWithBullets) }}</para></td></tr>
{{endfor}}
{{注释中的注释}
{{script}}
notesWithBullets=rml(注意.正文.替换('
  • ','&bull;')。替换('

    ','
    ')。替换('','
    ')。替换('
  • ','
    ')) {{endscript}} {{rml(note.title)}{{rml(notesWithBullets)}} {{endfor}}