mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-11 19:43:11 +02:00
Normalize Usenet separator
This commit is contained in:
@@ -1837,14 +1837,15 @@ public class HtmlHelper {
|
||||
tnode = block.get(i);
|
||||
text = tnode.getWholeText();
|
||||
|
||||
// Remove whitespace before/after newlines
|
||||
text = TRIM_WHITESPACE_NL.matcher(text).replaceAll(" ");
|
||||
|
||||
if ("-- ".equals(text)) {
|
||||
tnode.text(text);
|
||||
i++;
|
||||
continue;
|
||||
}
|
||||
|
||||
// Remove whitespace before/after newlines
|
||||
text = TRIM_WHITESPACE_NL.matcher(text).replaceAll(" ");
|
||||
|
||||
// Remove leading whitespace
|
||||
if (i == 0 || endsWithWhitespace(block.get(i - 1).text())) {
|
||||
index = 0;
|
||||
|
||||
Reference in New Issue
Block a user