mirror of https://github.com/M66B/FairEmail.git
Preserve space after image
This commit is contained in:
parent
f97592345e
commit
cf9cf24d94
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue