We simply cut the string at the nearest space around 170th char. If there are open tags before it, this will produce an invalid html string, which is passed to KNotification.
Git commit 348ceeae309faf2a790077db52df15b872734ddd by Martin Klapetek. Committed on 09/04/2013 at 20:53. Pushed by mklapetek into branch 'kde-telepathy-0.6'. Don't truncate the notification text The QML notification plasmoid now takes care of proper elipsis, so we don't need this anymore. Reviewed-by: David Edmundson FIXED-IN: 0.6.1 M +1 -9 src/textchannelapprover.cpp http://commits.kde.org/telepathy-approver/348ceeae309faf2a790077db52df15b872734ddd