mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Strip extraneous spaces from included filename
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
926a6fb194
commit
847fd91e32
2 changed files with 8 additions and 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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue