diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-08-28 12:19:26 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2021-09-11 17:03:26 +0900 |
commit | c5c0f5c65262f621484c711229e8c4de0b58d9d9 (patch) | |
tree | 64775aebb428c376c633c992d18df5078840f4ab /lib/rdoc/text.rb | |
parent | 30b4da2bc1300bb37c7d6cd3b097768a99ab4dba (diff) |
[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
Diffstat (limited to 'lib/rdoc/text.rb')
-rw-r--r-- | lib/rdoc/text.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |