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 | 0e1b6f795c677546e935f16dac49109db97a46d4 (patch) | |
| tree | 721ca9739cc0aa11209e729fa8f46e7060147468 | |
| parent | 3a5be9eca6538e38e772ea80b28071ef1cf8080d (diff) | |
| download | ruby-0e1b6f795c677546e935f16dac49109db97a46d4.tar.gz ruby-0e1b6f795c677546e935f16dac49109db97a46d4.tar.xz ruby-0e1b6f795c677546e935f16dac49109db97a46d4.zip | |
Strip extraneous spaces from included filename
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | lib/rdoc/markup/simple_markup/preprocess.rb | 4 |
2 files changed, 8 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Thu Feb 19 00:11:05 2004 Dave Thomas <dave@pragprog.com> + + * lib/rdoc/markup/simple_markup/preprocess.rb (SM::PreProcess::handle): + Strip extraneous space from filenames in :include: + Wed Feb 18 22:53:41 2004 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp> * lib/drb/unix.rb: remove O_NONBLOCk, thanks \ay diff --git a/lib/rdoc/markup/simple_markup/preprocess.rb b/lib/rdoc/markup/simple_markup/preprocess.rb index 09892c2b6..dbf4b216c 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) |
