improved formatting of multiline messages