创建分栏文本 reStructuredText

Create columned text reStructuredText

我正在尝试将 reStructuredText 部分格式化为如下所示:

type1 : this     type4 : this     type7 : this
type2 : this     type5 : this     type8 : this
type3 : this     type6 : this     type9 : this

这样我就可以用文本水平填充页面,有人知道我该怎么做吗?我猜想这与 css 和 container?

有关

这是我最好的选择,而不是使用 css 和容器...

我不认为有一种方法可以本机地执行您在重组文本中尝试的操作。但是,如果您使用 Sphinx, there is a directive called hlist (horizontal list): http://sphinx-doc.org/markup/para.html

你这样写:

.. hlist::
  :columns: 3

* A list of
* short items
* that should be
* displayed
* horizontally

它被转换为:

希望对您有所帮助!