summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorguy Decoux <ts@moulon.inra.fr>2009-02-28 20:09:29 +0100
committerguy Decoux <ts@moulon.inra.fr>2009-02-28 20:09:29 +0100
commitfa598d05504f6dd43e29e0f93a3f25d254ebd7c0 (patch)
tree7ecbeaf86a0a418342596d95a45f91f5fc2b01c8 /docs
parenta181d44ee4b78d7e016cf5b9e8fd5591723615bd (diff)
downloadmmap-ruby-fa598d05504f6dd43e29e0f93a3f25d254ebd7c0.zip
mmap-ruby-fa598d05504f6dd43e29e0f93a3f25d254ebd7c0.tar.gz
mmap-0.1.9
Diffstat (limited to 'docs')
-rwxr-xr-xdocs/b.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/b.rb b/docs/b.rb
index 2b7adfb..0839bb3 100755
--- a/docs/b.rb
+++ b/docs/b.rb
@@ -11,7 +11,8 @@ end
def normalize(text)
norm = text.gsub(/\(\(\|([^|]+)\|\)\)/, '<em>\\1</em>')
- norm.gsub(/\(\(\{/, '<tt>').gsub!(/\}\)\)/, '</tt>')
+ norm.gsub!(/\(\(\{/, '<tt>')
+ norm.gsub!(/\}\)\)/, '</tt>')
norm.gsub!(/\(\(<([^|>]+)[^>]*>\)\)/, '<em>\\1</em>')
norm.gsub!(/^\s*:\s/, ' * ')
norm