mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/rdoc] Convert upper case copyright and registered marks
https://github.com/ruby/rdoc/commit/3bca7dc093
This commit is contained in:
parent
bc0ea95ca8
commit
0fbde94b27
2 changed files with 4 additions and 2 deletions
|
@ -218,10 +218,10 @@ module RDoc::Text
|
|||
when s.scan(/\.\.\.(\.?)/) then
|
||||
html << s[1] << encoded[:ellipsis]
|
||||
after_word = nil
|
||||
when s.scan(/\(c\)/) then
|
||||
when s.scan(/\(c\)/i) then
|
||||
html << encoded[:copyright]
|
||||
after_word = nil
|
||||
when s.scan(/\(r\)/) then
|
||||
when s.scan(/\(r\)/i) then
|
||||
html << encoded[:trademark]
|
||||
after_word = nil
|
||||
when s.scan(/---/) then
|
||||
|
|
|
@ -502,6 +502,7 @@ The comments associated with
|
|||
|
||||
def test_to_html_copyright
|
||||
assert_equal '©', to_html('(c)')
|
||||
assert_equal '©', to_html('(C)')
|
||||
end
|
||||
|
||||
def test_to_html_dash
|
||||
|
@ -557,6 +558,7 @@ The comments associated with
|
|||
|
||||
def test_to_html_registered_trademark
|
||||
assert_equal '®', to_html('(r)')
|
||||
assert_equal '®', to_html('(R)')
|
||||
end
|
||||
|
||||
def test_to_html_tt_tag
|
||||
|
|
Loading…
Reference in a new issue