]> git.openstreetmap.org Git - rails.git/blobdiff - lib/rich_text.rb
Fix update-wiki-pages to resolve redirects correctly
[rails.git] / lib / rich_text.rb
index 2b7e310094058cd7f22670743b2681510057ccd3..533c8fbb4617b8af0540664d685433f9b2341ae5 100644 (file)
@@ -10,6 +10,7 @@ module RichText
 
   class SimpleFormat
     include ActionView::Helpers::TextHelper
+    include ActionView::Helpers::OutputSafetyHelper
 
     def sanitize(text)
       Sanitize.clean(text, Sanitize::Config::OSM).html_safe
@@ -36,7 +37,7 @@ module RichText
         link_proportion = 0
       end
 
-      return [link_proportion - 0.2, 0.0].max * 200 + link_count * 20
+      return [link_proportion - 0.2, 0.0].max * 200 + link_count * 40
     end
 
   protected