mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-01 14:46:31 +02:00
Use geo/address only if no containing links
This commit is contained in:
@@ -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")) {
|
||||
|
||||
Reference in New Issue
Block a user