mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-01 22:56:33 +02:00
Improved preview generation
This commit is contained in:
@@ -1654,7 +1654,10 @@ public class HtmlHelper {
|
||||
if (full)
|
||||
return text;
|
||||
|
||||
return truncate(text, PREVIEW_SIZE);
|
||||
String preview = text
|
||||
.replace("\u200C", "") // Zero-width non-joiner
|
||||
.replaceAll("\\s+", " ");
|
||||
return truncate(preview, PREVIEW_SIZE);
|
||||
}
|
||||
|
||||
static String truncate(String text, int at) {
|
||||
|
||||
Reference in New Issue
Block a user