diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-09-18 13:24:55 +0000 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-09-18 13:24:55 +0000 |
commit | ef60325fc646625ace71030b7ed2b55ff911a9f0 (patch) | |
tree | 9867fa52e07223c3c25b7929b18f916c1521e564 /data/rbot | |
parent | 7ab3595d60d2232b003049686403ee8add8e547d (diff) |
extends: String#ircify_html now has an option to obey non-breakable spaces or turn them into normal spaces
This option is used e.g. by the dict plugin to reduce the excessive whitespace in oxford entries.
Diffstat (limited to 'data/rbot')
-rw-r--r-- | data/rbot/plugins/dict.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/data/rbot/plugins/dict.rb b/data/rbot/plugins/dict.rb index 6d35bd65..ca5f2588 100644 --- a/data/rbot/plugins/dict.rb +++ b/data/rbot/plugins/dict.rb @@ -115,7 +115,7 @@ class DictPlugin < Plugin if h and h.match(%r!<h2>#{word}(?:<sup>1</sup>)?</h2>!)
m.reply("#{word} : #{url}") unless justcheck
defn = $'
- m.reply("#{Bold}%s#{Bold}: %s" % [word, defn.ircify_html], :overlong => :truncate)
+ m.reply("#{Bold}%s#{Bold}: %s" % [word, defn.ircify_html(:nbsp => :space)], :overlong => :truncate)
return true
end
}
|