mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-02 19:10:11 +01:00
Fixed displaying inline images
This commit is contained in:
@@ -207,14 +207,15 @@ public class HtmlHelper {
|
||||
}
|
||||
|
||||
if (linked)
|
||||
div.appendChild(img);
|
||||
div.appendChild(img.clone());
|
||||
else {
|
||||
Element a = document.createElement("a");
|
||||
a.attr("href", uri.toString());
|
||||
a.appendChild(img.clone());
|
||||
div.appendChild(a);
|
||||
}
|
||||
}
|
||||
} else
|
||||
div.appendChild(img.clone());
|
||||
|
||||
if (!TextUtils.isEmpty(alt)) {
|
||||
div.appendElement("br");
|
||||
|
||||
Reference in New Issue
Block a user