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 26e2ce97187b45439626af3e534c109df95c9531 by Martin Klapetek. Committed on 09/04/2013 at 20:58. 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 lib/notify-filter.cpp http://commits.kde.org/telepathy-text-ui/26e2ce97187b45439626af3e534c109df95c9531