mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-01 12:44:42 +00:00
Simplification
This commit is contained in:
parent
14c533d95f
commit
23eb8b1c97
1 changed files with 1 additions and 9 deletions
|
@ -2230,15 +2230,7 @@ public class HtmlHelper {
|
|||
|
||||
static Spanned fromHtml(@NonNull String html, boolean compress, @Nullable Html.ImageGetter imageGetter, @Nullable Html.TagHandler tagHandler, Context context) {
|
||||
Document document = JsoupEx.parse(html);
|
||||
Spanned spanned = fromDocument(context, document, false, compress, imageGetter, tagHandler);
|
||||
|
||||
int i = spanned.length();
|
||||
while (i > 1 && spanned.charAt(i - 2) == '\n' && spanned.charAt(i - 1) == '\n')
|
||||
i--;
|
||||
if (i != spanned.length())
|
||||
spanned = (Spanned) spanned.subSequence(0, i);
|
||||
|
||||
return spanned;
|
||||
return fromDocument(context, document, false, compress, imageGetter, tagHandler);
|
||||
}
|
||||
|
||||
static String toHtml(Spanned spanned, Context context) {
|
||||
|
|
Loading…
Reference in a new issue