"Unexpected indentation" with restructuredtext list
Asked Answered
S

1

6

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.

Samp answered 15/6, 2017 at 3:19 Comment(0)
A
11

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
Adames answered 15/6, 2017 at 5:46 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.