rdoc/rdoc — pull request #257 by gjaldon (2013-10-08 19:08:39+00:00)
Title: Ensure @str is a String

I get the below NoMethod Error every time I run `ri`. (version 3.12.2)
```
/Users/gjaldon/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/rdoc-3.12.2/lib/rdoc/markup/attribute_manager.rb:180:in `mask_protected_sequences': undefined method `gsub!' for ["read_array"]:Array (NoMethodError)
```

The method expects @str to be a String so just converted @str with String as a quick fix for it to work on my machine. Might be helpful to minimize the chances of others to experience this same bug and to make the method more liberal in the type of object it accepts.

Btw, add any test for it. Let me know if you'd like me to and if this is of any help.

Cheers!