Dramatically improved the indentation of lists.

Still some bugs w.r.t. list elements where some text is followed by a sublist. See tests/lists.html for examples