From 61e1cf23ac0d122fba3ad4cbaa402c7c94ad54d3 Mon Sep 17 00:00:00 2001 From: aycabta Date: Tue, 16 Mar 2021 19:01:50 +0900 Subject: [ruby/rdoc] Treat emphasis tags as excluding other notations And exclusive notations don't exclude other exclusive notations. https://github.com/ruby/rdoc/commit/b8baa9a435 --- lib/rdoc/markup/attr_span.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/rdoc/markup/attr_span.rb') diff --git a/lib/rdoc/markup/attr_span.rb b/lib/rdoc/markup/attr_span.rb index 6fe939fe7d..20ef11cd6d 100644 --- a/lib/rdoc/markup/attr_span.rb +++ b/lib/rdoc/markup/attr_span.rb @@ -17,7 +17,7 @@ class RDoc::Markup::AttrSpan def set_attrs(start, length, bits) updated = false for i in start ... (start+length) - if (@exclusive & @attrs[i]) == 0 + if (@exclusive & @attrs[i]) == 0 || (@exclusive & bits) != 0 @attrs[i] |= bits updated = true end -- cgit v1.2.3