From: Chris Alfeld Date: 2006-03-29T02:40:29+09:00 Subject: RDoc patch - 3863 & 3930 ------=_Part_8510_14307700.1143567612135 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Here's a second version of the patch which also fixes bug 3930, namely: class Foo def bar #:doc: end end resulted in bar( instead of bar(). This was because it was interpretting #:doc: as the argument giving (#:doc:) as the arguments and then later the # was interpreted as a comment resulting in (. Index: generators/html_generator.rb =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /src/ruby/lib/rdoc/generators/html_generator.rb,v retrieving revision 1.22 diff -r1.22 html_generator.rb 219c219 < @markup.add_special(/((link:|https?:|mailto:|ftp:|www\.)\S+\w)/, :HYPERLINK) --- > @markup.add_special(/((link:|https?:|mailto:|ftp:|www\.)\S+[\d\w\= /])/, :HYPERLINK) 1000c1000,1001 < p =3D "(" + p + ")" unless p[0] =3D=3D ?( --- > p =3D "(" + p unless p[0] =3D=3D ?( > p =3D p + ")" unless p[-1] =3D=3D ?) ------=_Part_8510_14307700.1143567612135 Content-Type: application/octet-stream; name=rdoc3863_3930.patch Content-Transfer-Encoding: 7bit X-Attachment-Id: f_ianhps Content-Disposition: attachment; filename="rdoc3863_3930.patch" Index: generators/html_generator.rb =================================================================== RCS file: /src/ruby/lib/rdoc/generators/html_generator.rb,v retrieving revision 1.22 diff -r1.22 html_generator.rb 219c219 < @markup.add_special(/((link:|https?:|mailto:|ftp:|www\.)\S+\w)/, :HYPERLINK) --- > @markup.add_special(/((link:|https?:|mailto:|ftp:|www\.)\S+[\d\w\/])/, :HYPERLINK) 1000c1000,1001 < p = "(" + p + ")" unless p[0] == ?( --- > p = "(" + p unless p[0] == ?( > p = p + ")" unless p[-1] == ?) ------=_Part_8510_14307700.1143567612135--