mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-26 02:45:31 +01:00
Preserve space after image
This commit is contained in:
@@ -565,12 +565,14 @@ public class HtmlEx {
|
||||
} else if (c > 0x7E || c < ' ') {
|
||||
out.append("&#").append((int) c).append(";");
|
||||
} else if (c == ' ') {
|
||||
boolean img = (i - 1 >= 0 && text.charAt(i - i) == '\uFFFC');
|
||||
|
||||
while (i + 1 < end && text.charAt(i + 1) == ' ') {
|
||||
out.append(" ");
|
||||
i++;
|
||||
}
|
||||
|
||||
out.append(' ');
|
||||
out.append(img ? " " : ' ');
|
||||
} else {
|
||||
out.append(c);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user