improved word wrap
mark items and transitions in output text