mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Merge rdoc-6.1.0.beta2
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
2a59b579fe
commit
1b43644edc
38 changed files with 602 additions and 528 deletions
|
@ -45,7 +45,7 @@ class RDoc::Markup::ToRdoc < RDoc::Markup::Formatter
|
|||
def initialize markup = nil
|
||||
super nil, markup
|
||||
|
||||
@markup.add_special(/\\\S/, :SUPPRESSED_CROSSREF)
|
||||
@markup.add_regexp_handling(/\\\S/, :SUPPRESSED_CROSSREF)
|
||||
@width = 78
|
||||
init_tags
|
||||
|
||||
|
@ -253,10 +253,10 @@ class RDoc::Markup::ToRdoc < RDoc::Markup::Formatter
|
|||
end
|
||||
|
||||
##
|
||||
# Removes preceding \\ from the suppressed crossref +special+
|
||||
# Removes preceding \\ from the suppressed crossref +target+
|
||||
|
||||
def handle_special_SUPPRESSED_CROSSREF special
|
||||
text = special.text
|
||||
def handle_regexp_SUPPRESSED_CROSSREF target
|
||||
text = target.text
|
||||
text = text.sub('\\', '') unless in_tt?
|
||||
text
|
||||
end
|
||||
|
@ -264,7 +264,7 @@ class RDoc::Markup::ToRdoc < RDoc::Markup::Formatter
|
|||
##
|
||||
# Adds a newline to the output
|
||||
|
||||
def handle_special_HARD_BREAK special
|
||||
def handle_regexp_HARD_BREAK target
|
||||
"\n"
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue