如何避免 ReST table 中的水平滚动条?

How can I avoid the horizontal scrollbar in a ReST table?

我在 ReST 标记中有这个 table:

+---------------------------+-----------------------------------------------------------------+
| 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 主题??)中更改什么才能让它破坏文本?


编辑:

@aflp91 的回答导致了这个 table:

您可以将 CSS 属性 用于 table:

Overflow-x : hidden;
overflow-y : hidden;

添加一个 _static/custom.css 文件

.wy-table-responsive table td {
white-space: normal;
}

不要忘记将其声明为 conf.py:

    def setup(app):
        app.add_stylesheet('custom.css')

在我的测试中有效…