Correctly interpret and process nested lists

Nested lists must not interfer with indentation.