mirror of https://github.com/M66B/FairEmail.git
Small improvement
This commit is contained in:
parent
6e29e09de5
commit
8db7b8fdda
|
@ -356,19 +356,17 @@ public class HtmlHelper {
|
||||||
String src = img.attr("src");
|
String src = img.attr("src");
|
||||||
String tracking = img.attr("tracking");
|
String tracking = img.attr("tracking");
|
||||||
|
|
||||||
if (!show_images) {
|
if (!show_images && !TextUtils.isEmpty(alt))
|
||||||
if (!TextUtils.isEmpty(alt)) {
|
if (TextUtils.isEmpty(tracking))
|
||||||
|
img.appendText(" " + alt + " ");
|
||||||
|
else {
|
||||||
img.append(" ");
|
img.append(" ");
|
||||||
if (TextUtils.isEmpty(tracking))
|
Element a = document.createElement("a");
|
||||||
img.appendText(alt);
|
a.attr("href", tracking);
|
||||||
else {
|
a.text(alt);
|
||||||
Element a = document.createElement("a");
|
img.appendChild(a);
|
||||||
a.attr("href", tracking);
|
img.appendText(" ");
|
||||||
a.text(alt);
|
|
||||||
img.appendChild(a);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// Annotate source with width and height
|
// Annotate source with width and height
|
||||||
if (!TextUtils.isEmpty(src)) {
|
if (!TextUtils.isEmpty(src)) {
|
||||||
|
|
Loading…
Reference in New Issue