0

我正在使用 RST 样式使用 rst2pdf 生成 PDF。有时我的内容需要跨越多行。我似乎无法弄清楚如何用线块来做到这一点,因为间距太远了。有谁知道如何修复行距或其他方式来做到这一点?

RST文件:

* I am a good a paragraph with normal spacing. I am a good a paragraph with normal spacing. I am a good a paragraph with normal spacing. I am a good a paragraph with normal spacing. 
|    Why is the spacing
|    so far apart
|    for these other lines?
|    Help!

结果: 行距问题

4

1 回答 1

0

我可以通过将样式应用于我的线块来解决此问题。

风格

  spacing:
    parent: bodytext
    spaceAfter: 0
    spaceBefore: 0

代码

* I am a good a paragraph with normal spacing. I am a good a paragraph with normal spacing. I am a good a paragraph with normal spacing. I am a good a paragraph with normal spacing. 
.. class:: spacing

    |    Why is the spacing
    |    so far apart
    |    for these other lines?
    |    Help!

结果 在此处输入图像描述

于 2019-11-06T18:52:52.373 回答