diff --git a/ChangeLog b/ChangeLog index 859710e066..2fffc9dfe2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Thu Feb 19 00:11:05 2004 Dave Thomas + + * 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 * 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 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)