From c5c0f5c65262f621484c711229e8c4de0b58d9d9 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sat, 28 Aug 2021 12:19:26 +0900 Subject: [ruby/rdoc] Convert single quotes in character entity references As well as double quotes. https://github.com/ruby/rdoc/pull/824#discussion_r683173389 https://github.com/ruby/rdoc/commit/09002bdab5 --- lib/rdoc/text.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/rdoc/text.rb') diff --git a/lib/rdoc/text.rb b/lib/rdoc/text.rb index c3218fdb2f..2fc47daa66 100644 --- a/lib/rdoc/text.rb +++ b/lib/rdoc/text.rb @@ -240,7 +240,7 @@ module RDoc::Text when s.scan(/''/) then # tick double quote html << encoded[:close_dquote] after_word = nil - when s.scan(/'/) then # single quote + when s.scan(/'|'/) then # single quote if insquotes html << encoded[:close_squote] insquotes = false -- cgit v1.2.3