Small improvement

This commit is contained in:
M66B 2019-10-19 10:19:05 +02:00
parent 6e29e09de5
commit 8db7b8fdda
1 changed files with 9 additions and 11 deletions

View File

@ -356,18 +356,16 @@ 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)) {
img.append(" ");
if (TextUtils.isEmpty(tracking)) if (TextUtils.isEmpty(tracking))
img.appendText(alt); img.appendText(" " + alt + " ");
else { else {
img.append(" ");
Element a = document.createElement("a"); Element a = document.createElement("a");
a.attr("href", tracking); a.attr("href", tracking);
a.text(alt); a.text(alt);
img.appendChild(a); img.appendChild(a);
} img.appendText(" ");
}
} }
// Annotate source with width and height // Annotate source with width and height