]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - lib/rbot/core/utils/extends.rb
httputil: try to guess content-type from extension if it's not defined
[user/henk/code/ruby/rbot.git] / lib / rbot / core / utils / extends.rb
index 4e5459d850b2493e8435b6b4f545ce836b1c9f4d..7b733994b74d323b010db0bc2ee6d66dad1f598d 100644 (file)
@@ -137,6 +137,10 @@ class ::String
     txt.gsub!(/<sub>(.*?)<\/sub>/, '_{\1}')
     txt.gsub!(/(^|_)\{(.)\}/, '\1\2')
 
+    # List items are converted to *). We don't have special support for
+    # nested or ordered lists.
+    txt.gsub!(/<li>/, ' *) ')
+
     # All other tags are just removed
     txt.gsub!(/<[^>]+>/, '')