[英]In Sphinx, can I prevent the list format from changing when including a .. note:: within the list?
#. List number one
#. Part two
.. note:: adding some note
#. part three
Doing the above causes the spacing or format, in the numbered list to change when compared to a numbered list without a note. 与没有注释的编号列表相比,执行上述操作会导致编号列表中的间距或格式发生变化。 For clarity, the text becomes this:
为了清楚起见,文本变为:
1. List number one
2. List number two
NOTE
3. Part three
Rather than doing this: 而不是这样做:
1. List number one
2. Part Two
NOTE
3. Part three
Is this a problem with Sphinx, or is it a theme issue? 这是Sphinx的问题,还是主题的问题?
Whitespace has meaning in reStructuredText. 空格在reStructuredText中具有含义。 Directives within a bulleted list require blank lines around them, similar to nested lists .
项目符号列表中的指令在其周围需要空白行,类似于嵌套列表 。
#. List number one
#. Part two
.. note:: adding some note
#. part three
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.