зеркало из https://github.com/github/ruby.git
[ruby/rdoc] Convert upper case copyright and registered marks
https://github.com/ruby/rdoc/commit/3bca7dc093
This commit is contained in:
Родитель
bc0ea95ca8
Коммит
0fbde94b27
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче