mirror of https://github.com/M66B/FairEmail.git
Improved preview generation
This commit is contained in:
parent
c342b8c625
commit
561a1555a9
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue