From: Joel VanderWerf Date: 2006-04-01T06:10:40+09:00 Subject: Re: rdoc patch - horiz lines in plain text files While we're patching rdoc, here's one for the problem I reported in ruby-talk:183692. The problem is that three or more hyphens at the beginning of a line should get marked up into a horizontal line, but two hyphens at the beginning of a line are treated as toggling markup off (private comments). This only happens in plain text files. In .rb files, the behavior is correct. This is a patch against 1.8.4. (The remove_private_comments method did not exist in parse_simple.rb in ruby-1.8.2, and --- was treated correctly.) --- parsers/parse_simple.rb.bck 2006-03-31 13:01:49.000000000 -0800 +++ parsers/parse_simple.rb 2006-03-31 13:01:49.000000000 -0800 @@ -35,7 +35,7 @@ end def remove_private_comments(comment) - comment.gsub(/^--.*?^\+\+/m, '').sub(/^--.*/m, '') + comment.gsub(/^--(?!-).*?^\+\+/m, '').sub(/^--(?!-).*/m, '') end end end -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407