From 0e1b6f795c677546e935f16dac49109db97a46d4 Mon Sep 17 00:00:00 2001 From: dave Date: Wed, 18 Feb 2004 15:12:55 +0000 Subject: Strip extraneous spaces from included filename git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/rdoc/markup/simple_markup/preprocess.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib') 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) -- cgit