问题
I did not succeed to get a simple 3 levels indented list with Restructuredtext:
$ cat test.rst
Title
======
- aaaa
- aaaa2
- aaaa2
- aaaa3
- aaaa
- aaaa
Ok
$ rst2html test.rst > /tmp/a.html
test.rst:7: (ERROR/3) Unexpected indentation.
$
I've try different combination of spaces in front of aaaa3
but I get in all cases (ERROR/3) Unexpected indentation.
回答1:
Nested lists are tricky because different levels require blank lines between those levels.
Nested lists are possible, but be aware that they must be separated from the parent list items by blank lines
This should work:
- aaaa
- aaaa2
- aaaa2
- aaaa3
- aaaa
- aaaa
来源:https://stackoverflow.com/questions/44557957/unexpected-indentation-with-restructuredtext-list