fix one line note content preview

This commit is contained in:
Elias 2020-06-21 00:01:43 +02:00 committed by Niedermann IT-Dienstleistungen
parent a3f157223f
commit 62487adeae

View file

@ -100,11 +100,7 @@ public class NoteUtil {
content = content.substring(trimmedTitle.length()); content = content.substring(trimmedTitle.length());
} }
} }
if (content.contains("\n")) { return truncateString(content.trim(), 200).replace("\n", EXCERPT_LINE_SEPARATOR);
return truncateString(content.trim(), 200).replace("\n", EXCERPT_LINE_SEPARATOR);
} else {
return "";
}
} }
@NonNull @NonNull