diff --git a/app/src/main/java/it/niedermann/owncloud/notes/util/NoteUtil.java b/app/src/main/java/it/niedermann/owncloud/notes/util/NoteUtil.java index e79635f2..6e6f6244 100644 --- a/app/src/main/java/it/niedermann/owncloud/notes/util/NoteUtil.java +++ b/app/src/main/java/it/niedermann/owncloud/notes/util/NoteUtil.java @@ -100,11 +100,7 @@ public class NoteUtil { content = content.substring(trimmedTitle.length()); } } - if (content.contains("\n")) { - return truncateString(content.trim(), 200).replace("\n", EXCERPT_LINE_SEPARATOR); - } else { - return ""; - } + return truncateString(content.trim(), 200).replace("\n", EXCERPT_LINE_SEPARATOR); } @NonNull