[ruby/rdoc] Convert tick double quote in character entity references
https://github.com/ruby/rdoc/commit/6ed889aac9
This commit is contained in:
parent
6944163415
commit
bc0ea95ca8
@ -237,7 +237,7 @@ module RDoc::Text
|
|||||||
when s.scan(/``/) then # backtick double quote
|
when s.scan(/``/) then # backtick double quote
|
||||||
html << encoded[:open_dquote]
|
html << encoded[:open_dquote]
|
||||||
after_word = nil
|
after_word = nil
|
||||||
when s.scan(/''/) then # tick double quote
|
when s.scan(/(?:'|'){2}/) then # tick double quote
|
||||||
html << encoded[:close_dquote]
|
html << encoded[:close_dquote]
|
||||||
after_word = nil
|
after_word = nil
|
||||||
when s.scan(/`/) then # backtick
|
when s.scan(/`/) then # backtick
|
||||||
|
@ -514,6 +514,7 @@ The comments associated with
|
|||||||
def test_to_html_double_backtick
|
def test_to_html_double_backtick
|
||||||
assert_equal '“a', to_html('``a')
|
assert_equal '“a', to_html('``a')
|
||||||
assert_equal '“a“', to_html('``a``')
|
assert_equal '“a“', to_html('``a``')
|
||||||
|
assert_equal '“a”', to_html("``a''")
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_to_html_double_quote
|
def test_to_html_double_quote
|
||||||
|
Loading…
x
Reference in New Issue
Block a user