"Unexpected indentation" 重组后的文本列表
"Unexpected indentation" with restructuredtext list
我没有成功得到一个带有 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.
Nested lists 很棘手,因为不同的级别需要在这些级别之间有空行。
Nested lists are possible, but be aware that they must be separated from the parent list items by blank lines
这应该有效:
- aaaa
- aaaa2
- aaaa2
- aaaa3
- aaaa
- aaaa
我没有成功得到一个带有 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.
Nested lists 很棘手,因为不同的级别需要在这些级别之间有空行。
Nested lists are possible, but be aware that they must be separated from the parent list items by blank lines
这应该有效:
- aaaa
- aaaa2
- aaaa2
- aaaa3
- aaaa
- aaaa