diff options
author | dave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-02-18 15:12:55 +0000 |
---|---|---|
committer | dave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-02-18 15:12:55 +0000 |
commit | 847fd91e323d054121600c7a8568f0c734102fff (patch) | |
tree | 721ca9739cc0aa11209e729fa8f46e7060147468 /lib | |
parent | 926a6fb1941437274613b7bc0dd76ab6cb0d3fdc (diff) | |
download | ruby-847fd91e323d054121600c7a8568f0c734102fff.tar.gz |
Strip extraneous spaces from included filename
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rdoc/markup/simple_markup/preprocess.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/rdoc/markup/simple_markup/preprocess.rb b/lib/rdoc/markup/simple_markup/preprocess.rb index 09892c2b6c..dbf4b216ca 100644 --- a/lib/rdoc/markup/simple_markup/preprocess.rb +++ b/lib/rdoc/markup/simple_markup/preprocess.rb @@ -20,13 +20,15 @@ module SM def handle(text) text.gsub!(/^([ \t#]*):(\w+):\s*(.+)?\n/) do + prefix = $1 directive = $2.downcase param = $3 case directive when "include" - include_file($3, $1) + filename = param.split[0] + include_file(filename, prefix) else yield(directive, param) |