[英]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
与没有注释的编号列表相比,执行上述操作会导致编号列表中的间距或格式发生变化。 为了清楚起见,文本变为:
1. List number one
2. List number two
NOTE
3. Part three
而不是这样做:
1. List number one
2. Part Two
NOTE
3. Part three
这是Sphinx的问题,还是主题的问题?
空格在reStructuredText中具有含义。 项目符号列表中的指令在其周围需要空白行,类似于嵌套列表 。
#. List number one
#. Part two
.. note:: adding some note
#. part three
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.