format indented list properly