mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-03 13:44:40 +00:00
Use geo/address only if no containing links
This commit is contained in:
parent
f3597b6c61
commit
33c8576a84
1 changed files with 3 additions and 2 deletions
|
@ -1103,8 +1103,9 @@ public class HtmlHelper {
|
|||
// Replace addresses by link
|
||||
// https://developer.mozilla.org/en-US/docs/Web/HTML/Element/address
|
||||
for (Element address : document.select("address"))
|
||||
address.tagName("a")
|
||||
.attr("href", "geo:0,0?q=" + Uri.encode(address.text()));
|
||||
if (address.select("a").size() == 0)
|
||||
address.tagName("a")
|
||||
.attr("href", "geo:0,0?q=" + Uri.encode(address.text()));
|
||||
|
||||
// Paragraphs
|
||||
for (Element p : document.select("p")) {
|
||||
|
|
Loading…
Reference in a new issue