mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-02 07:06:18 +02:00
Simplification
This commit is contained in:
@@ -1284,23 +1284,10 @@ public class HtmlHelper {
|
||||
line = l.toString();
|
||||
|
||||
// Html characters
|
||||
// This will handle spaces / word wrapping as well
|
||||
line = Html.escapeHtml(line);
|
||||
|
||||
// Space characters
|
||||
int len = line.length();
|
||||
for (int j = 0; j < len; j++) {
|
||||
char kar = line.charAt(j);
|
||||
if (kar == ' ') {
|
||||
// Prevent trimming start
|
||||
// Keep one space for word wrapping
|
||||
if (j == 0 || (j + 1 < len && line.charAt(j + 1) == ' '))
|
||||
sb.append(" ");
|
||||
else
|
||||
sb.append(' ');
|
||||
} else
|
||||
sb.append(kar);
|
||||
}
|
||||
|
||||
sb.append(line);
|
||||
sb.append("<br>");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user