diff options
author | aycabta <[email protected]> | 2021-03-16 19:01:50 +0900 |
---|---|---|
committer | aycabta <[email protected]> | 2021-04-03 01:21:50 +0900 |
commit | 61e1cf23ac0d122fba3ad4cbaa402c7c94ad54d3 (patch) | |
tree | 7c4d65e6545f38c7c9db408d21ec2d23de50b115 /lib/rdoc/markup/attr_span.rb | |
parent | e84d275fe6d0c14ba58ce73b13323879c060b7ae (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.rb | 2 |
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 |