diff --git a/src/main/java/eu/siacs/conversations/utils/UIHelper.java b/src/main/java/eu/siacs/conversations/utils/UIHelper.java index ebb800d4..ae40fc08 100644 --- a/src/main/java/eu/siacs/conversations/utils/UIHelper.java +++ b/src/main/java/eu/siacs/conversations/utils/UIHelper.java @@ -201,6 +201,9 @@ public class UIHelper { char first = l.charAt(0); if (first != '>' && first != '\u00bb') { String line = l.trim(); + if (line.isEmpty()) { + continue; + } char last = line.charAt(line.length()-1); if (builder.length() != 0) { builder.append(' ');