snt*_*nth 4 restructuredtext python-sphinx
假设我有一张类似的桌子reStructuredText:
+---------------+---------------------------+
| key | value |
+===============+===========================+
| short_word | value_1 |
+---------------+---------------------------+
| really_long_ | value 2 |
| word_I_want_ | |
| to_break | |
+---------------+---------------------------+
Run Code Online (Sandbox Code Playgroud)
有没有办法打破左下角单元格中的单词,即使用行继续转义字符或类似的字符,以便它仍然在输出中显示为单个单词?
特别是,我使用 Sphinx 来记录我的 Python 文档,并且由于尾随下划线字符,它将第一行解释为链接目标,从而生成错误。
好的,经过一些实验,看起来通常的反斜杠 \ 行继续字符有效,即
+---------------+---------------------------+
| key | value |
+===============+===========================+
| short_word | value_1 |
+---------------+---------------------------+
| really_long\ | value 2 |
| _word_I_want\ | |
| _to_break | |
+---------------+---------------------------+
Run Code Online (Sandbox Code Playgroud)
我发现我仍然必须将下划线字符移动到下一行,否则第一行仍然被解释为链接目标,尽管生成的 HTML 表中的单词被写为连续单词。