trim message bodys on display

This commit is contained in:
Daniel Gultsch 2015-02-07 12:29:17 +01:00
parent e1e09d5cba
commit 00b2e30938
2 changed files with 3 additions and 3 deletions

View File

@ -376,9 +376,9 @@ public class Message extends AbstractEntity {
public String getMergedBody() {
final Message next = this.next();
if (this.mergeable(next)) {
return getBody() + '\n' + next.getMergedBody();
return getBody().trim() + '\n' + next.getMergedBody();
}
return getBody();
return getBody().trim();
}
public boolean hasMeCommand() {

View File

@ -154,7 +154,7 @@ public class UIHelper {
return new Pair<>(message.getBody().replaceAll("^" + Message.ME_COMMAND,
UIHelper.getMessageDisplayName(message) + " "), false);
} else {
return new Pair<>(message.getBody(), false);
return new Pair<>(message.getBody().trim(), false);
}
}
}