【问题标题】:How to insert two blank lines between title and header in list-table of reStrutureText?如何在 reStrutureText 的列表中的标题和标题之间插入两个空行?
【发布时间】:2017-12-08 13:00:26
【问题描述】:

这是reStrutureText中list-table的sn-p。

.. 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!

显示效果。

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

在线工具http://rst.ninjs.org/中测试\n\n不起作用。

【问题讨论】:

  • 我从未使用 Python 制作表格,但 \n 会做些什么吗?

标签: python restructuredtext


【解决方案1】:

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

caption {
    margin-bottom: 2em;
}

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-04-05
    • 2013-07-22
    • 2020-08-05
    • 1970-01-01
    • 2019-03-22
    • 2011-09-05
    • 1970-01-01
    相关资源
    最近更新 更多