We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82eaefb commit 6ed889aCopy full SHA for 6ed889a
lib/rdoc/text.rb
@@ -237,7 +237,7 @@ def to_html text
237
when s.scan(/``/) then # backtick double quote
238
html << encoded[:open_dquote]
239
after_word = nil
240
- when s.scan(/''/) then # tick double quote
+ when s.scan(/(?:'|'){2}/) then # tick double quote
241
html << encoded[:close_dquote]
242
243
when s.scan(/`/) then # backtick
test/rdoc/test_rdoc_text.rb
@@ -514,6 +514,7 @@ def test_to_html_dash
514
def test_to_html_double_backtick
515
assert_equal '“a', to_html('``a')
516
assert_equal '“a“', to_html('``a``')
517
+ assert_equal '“a”', to_html("``a''")
518
end
519
520
def test_to_html_double_quote
0 commit comments