X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/3aa1c46aef07912f4581bbd35f74a0fa5f42534c..917d7324a6f1d3f6256b1a541a912ccee84097d1:/lib/osm.rb?ds=inline diff --git a/lib/osm.rb b/lib/osm.rb index dd62d6620..c85abc0f3 100644 --- a/lib/osm.rb +++ b/lib/osm.rb @@ -6,7 +6,6 @@ module OSM require 'rexml/text' require 'xml/libxml' require 'digest/md5' - require 'RMagick' require 'nokogiri' if defined?(SystemTimer) @@ -517,7 +516,7 @@ module OSM link_count = 0 link_size = 0 - doc = Nokogiri::HTML(text) + doc = Nokogiri::HTML(Rinku.auto_link(text, :urls)) if doc.content.length > 0 doc.xpath("//a").each do |link|