mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Merge RDoc 6.0.3 from upstream.
It fixed the several bugs that was found after RDoc 6 releasing. From: SHIBATA Hiroshi <hsbt@ruby-lang.org> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62924 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ee83dc3fe4
commit
98c7058bf7
94 changed files with 983 additions and 466 deletions
|
@ -266,6 +266,7 @@ class RDoc::Markup::PreProcess
|
|||
end
|
||||
|
||||
content = RDoc::Encoding.read_file full_name, encoding, true
|
||||
content = RDoc::Encoding.remove_magic_comment content
|
||||
|
||||
# strip magic comment
|
||||
content = content.sub(/\A# .*coding[=:].*$/, '').lstrip
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue