作者:书友30905431 | 来源:互联网 | 2023-02-01 11:23
我没有通过Restructuredtext获得简单的3级缩进列表:
$ cat test.rst
Title
======
- aaaa
- aaaa2
- aaaa2
- aaaa3
- aaaa
- aaaa
Ok
$ rst2html test.rst > /tmp/a.html
test.rst:7: (ERROR/3) Unexpected indentation.
$
我尝试过在前面的不同空间组合,aaaa3
但在所有情况下我都可以(ERROR/3) Unexpected indentation.
1> Steve Piercy..:
嵌套列表比较棘手,因为不同级别在这些级别之间需要空白行。
嵌套列表是可能的,但是请注意,它们必须与父列表项之间用空白行分隔
这应该工作:
- aaaa
- aaaa2
- aaaa2
- aaaa3
- aaaa
- aaaa