我在 ReST 标记中有这个表:
+---------------------------+-----------------------------------------------------------------+
| Option Line Kind | Distinguishing Characteristic |
+===========================+=================================================================+
| **Reference** | The option name is called a (node) reference, if the value\ |
| | of an option is a predefined keyword for the current node\ |
| | class. Because the option's value is a keyword, it can not\ |
| | be an interpolated value. |
+---------------------------+-----------------------------------------------------------------+
| **Option** | The option uses a defined option name valid for the current\ |
| | node class. The value can be a fixed or interpolated string. |
+---------------------------+-----------------------------------------------------------------+
| **User Defined Variable** | Otherwise an option line is a user defined variable. It can\ |
| | have fixed or interpolated string values. |
+---------------------------+-----------------------------------------------------------------+
Sphinx(ReadTheDocs 主题)生成一个水平滚动条,而不是破坏第 2 列中的内容。结果是这样的混乱:
我需要在 ReST(或 RTFD 主题??)中更改什么才能让它破坏文本?
Edit:
The answer from @aflp91 results in this table:
添加 _static/custom.css 文件
.wy-table-responsive table td {
white-space: normal;
}
不要忘记将其声明到conf.py中:
def setup(app):
app.add_stylesheet('custom.css')
在我的测试中有效...
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)