我在linux上使用rst2pdf 0.92,并试图将html嵌入到list-table指令中,如Dimitri Christodoulou的博客所示。Robert提到他已经将这个特性集成到rst2pdf 0.90中。
我正试图构建一个发票,每个单元格包含多个文本行,控制换行符位置的最简单方法似乎是使用<br>标记。这是我的test.rst文件:
Invoice for Services Rendered
=============================
.. list-table::
:widths: 50 50
:header-rows: 0
* - .. raw:: html
<p>My Name Here<br>My address here<br>City, State, Zip<br>Ph: 214-555-1212<br></p>
- **INVOICE**
* - This is a test
- .. raw:: html
<p>Invoice #20120622001<br>Date: 25 June 2012<br></p>这可以编译成一个pdf格式,使用rst2pdf -o test.pdf test.rst没有任何问题;但是,我没有看到嵌入的HTML应该是什么文本:

我正在使用:
如何让rst2pdf将上面显示的HTML嵌入到list-table指令中?
编辑
这已经作为rst2pdf第455期提交了
发布于 2012-06-26 02:19:29
修好了!抱歉花了这么长时间。最新的pisa/xhtml2pdf有完全不同的进口:-P
https://stackoverflow.com/questions/11189250
复制相似问题