jgm/pandoc — Issue #369: Markdown to ODT nested list indentation
Author: ausuwardi
Created: 2012-01-06 03:56:10+00:00
State: open

Pandoc version: 1.8.1.1 (from Ubuntu 11.10 repo)
LibreOffice version: 3.4.3

When converting markdown to ODT, nested numbered lists don't get correct indentation. This happens when creating a numbered sub list inside a bulleted list. Here's example code to reproduce the problem:

```
# Test Nested List

* Bullet 1

Paragraph in bullet 1

* Bullet 2

Paragraph in bullet 2

* Nested bullet 1
* Nested bullet 2
* Nested bullet 3

* Bulllet 3

Paragraph in bullet 3

1. Nested list 1
2. Nested list 2
3. Nested list 3

Second paragraph in bullet 3

All done, aren't they displayed correctly?
```
Run pandoc with:

pandoc -f markdown -t odt -o test.odt test.md

The numbered list inside 'Bullet list 3' are not indented correctly. I checked the content.xml inside generated ODT file, and found that there is no level 2 style for numbered list. While there are 10 level styles declared for bullet lists, numbered list only have 1 level style entry in the content.xml.