相关疑难解决方法(0)

Python文档字符串(Sphinx)中的csv表格式-单个单元格中有多行

我正在使用Sphinx记录Python项目。

.. csv-table::指令似乎有点不一致。

主要问题是单元格中的新行。还有我可疑的心理健康。

如下代码:

.. csv-table::
    :header: Header1, Header2, Header3

    A, B, "These lines appear as one line, 
    even though they are written in two lines."
    C, D, "| These lines appear as two lines, 
    | but they are indented, and my OCD will simply not allow it."
    E, F, "| If I continue this line in another line,
    it will appear in a new line."
    G, H, "If there is a blank line between the two …
Run Code Online (Sandbox Code Playgroud)

python csv restructuredtext docstring python-sphinx

4
推荐指数
1
解决办法
2222
查看次数

标签 统计

csv ×1

docstring ×1

python ×1

python-sphinx ×1

restructuredtext ×1