handle automatic indent when editing lists
