1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/rdoc.rb: Import RDoc 3.9.1. Fixes bugs in the RDoc::Markup

parser.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32794 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
drbrain 2011-08-01 05:25:13 +00:00
parent 7d2efc1fda
commit a429cafc4d
7 changed files with 61 additions and 7 deletions

View file

@ -86,11 +86,18 @@ class RDoc::Markup::Parser
# Builds a Heading of +level+
def build_heading level
_, text, = get # TEXT
heading = RDoc::Markup::Heading.new level, text
skip :NEWLINE
type, text, = get
heading
text = case type
when :TEXT then
skip :NEWLINE
text
else
unget
''
end
RDoc::Markup::Heading.new level, text
end
##