lib/isodoc/function/inline.rb in isodoc-2.9.4 vs lib/isodoc/function/inline.rb in isodoc-2.10.0
- old
+ new
@@ -6,10 +6,10 @@
def link_parse(node, out)
url = node["target"]
node["update-type"] == "true" and url = suffix_url(url)
out.a **attr_code(href: url, title: node["alt"]) do |l|
if node.elements.empty? && node.text.strip.empty?
- l << node["target"].sub(/^mailto:/, "")
+ l << @c.encode(node["target"].sub(/^mailto:/, ""), :basic, :hexadecimal)
else node.children.each { |n| parse(n, l) }
end
end
end