mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/rdoc/markup/attribute_manager.rb: fixing ri output when special
characters are inside html tags. Thanks Tomo Kazahaya! [Bug #3512] * test/rdoc/test_attribute_manager.rb: corresponding test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28647 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b782aea75f
commit
1df8d6dbc3
3 changed files with 23 additions and 2 deletions
|
@ -112,7 +112,7 @@ class RDoc::Markup::AttributeManager
|
|||
# first do matching ones
|
||||
tags = @matching_word_pairs.keys.join("")
|
||||
|
||||
re = /(^|\W)([#{tags}])([#:\\]?[\w.\/-]+?\S?)\2(\W|$)/
|
||||
re = /(^|[^\w#{NULL}])([#{tags}])([#:\\]?[\w.\/-]+?\S?)\2(\W|$)/
|
||||
|
||||
1 while str.gsub!(re) do
|
||||
attr = @matching_word_pairs[$2]
|
||||
|
@ -228,8 +228,8 @@ class RDoc::Markup::AttributeManager
|
|||
|
||||
@attrs = RDoc::Markup::AttrSpan.new @str.length
|
||||
|
||||
convert_attrs @str, @attrs
|
||||
convert_html @str, @attrs
|
||||
convert_attrs @str, @attrs
|
||||
convert_specials @str, @attrs
|
||||
|
||||
unmask_protected_sequences
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue