]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
ircify_html: minimal support for li tags
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Tue, 18 Sep 2007 23:40:46 +0000 (23:40 +0000)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Tue, 18 Sep 2007 23:40:46 +0000 (23:40 +0000)
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!(/<[^>]+>/, '')