如何在reStrutureText的list-table中的title和header之间插入两个空行?

时间:2017-12-08 13:00:26

标签: python restructuredtext

以下是reStrutureText中list-table的片段。

.. list-table:: Frozen Delights!
  :widths: 15 10 30
  :header-rows: 1

  * - Treat
    - Quantity
    - Description
  * - Albatross
    - 2.99
    - On a stick!
  * - Crunchy Frog
    - 1.49
    - If we took the bones out, it wouldn't be
      crunchy, now would it?
  * - Gannet Ripple
    - 1.99
    - On a stick!

显示效果。

enter image description here

如何在标题Frozen Delights!和标题行Treat Quantity Description之间插入两个空行?

要在在线工具http://rst.ninjs.org/中测试\n\n无效。

enter image description here enter image description here

1 个答案:

答案 0 :(得分:1)

如果你想要的是带有可视空间的样式修改,而不是实际的换行符,那么修改渲染的HTML的样式表。

caption {
    margin-bottom: 2em;
}

caption style