Implementation of #1343 (add [...] for multiline messages)

#1343