summaryrefslogtreecommitdiff
path: root/lib/rdoc/markup/attr_span.rb
diff options
context:
space:
mode:
authoraycabta <[email protected]>2021-03-16 19:01:50 +0900
committeraycabta <[email protected]>2021-04-03 01:21:50 +0900
commit61e1cf23ac0d122fba3ad4cbaa402c7c94ad54d3 (patch)
tree7c4d65e6545f38c7c9db408d21ec2d23de50b115 /lib/rdoc/markup/attr_span.rb
parente84d275fe6d0c14ba58ce73b13323879c060b7ae (diff)
[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
Diffstat (limited to 'lib/rdoc/markup/attr_span.rb')
-rw-r--r--lib/rdoc/markup/attr_span.rb2
1 files changed, 1 insertions, 1 deletions
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