Skip to content

Commit b39045a

Browse files
Fix the horizontal rule markup.
1 parent 4c69d57 commit b39045a

File tree

5 files changed

+17
-8
lines changed

5 files changed

+17
-8
lines changed

History.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ documentation about ri.
3333
* Provided an ri command-line option to control its caching behavior.
3434
* Improved RDoc's documentation. Added RI.txt to document ri.
3535

36-
* 25 Bug fixes:
36+
* 26 Bug fixes:
3737
* Fixed prototype detection in C parser. Can process ruby 1.8 C files
3838
again.
3939
* Fixed the main page for frameless template. Patch by Marcin Raczkowski.
@@ -74,6 +74,8 @@ documentation about ri.
7474
* Stopped the XML template from generating invalid XML due to malformed
7575
embedded ruby.
7676
* Adding missing information about a class' constants to the XML template.
77+
* Fixed the horizontal rule markup (---) so that it correctly adds a
78+
horizontal rule rather than suppressing all text that follows.
7779

7880
=== 2.1.0 / 2008-07-20
7981

README.txt

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,21 @@ and used with the +-T+ option.
3232
# ... see RDoc
3333

3434
== BUGS:
35-
35+
---
3636
RDoc's Fortran 95 support is pretty broken right now.
3737
The rdoc-f95[http://www.gfd-dennou.org/library/dcmodel/rdoc-f95/] project has
3838
patches for RDoc 1.x that provide excellent Fortran 95 support. Properly
3939
supporting Fortran 95 requires a rewrite of RDoc's markup engine, which
4040
is high on our list of goals. The Fortran 95 issue can be tracked
4141
here[http://rubyforge.org/tracker/index.php?func=detail&aid=21542&group_id=627&atid=2475].
42-
42+
---
43+
The markup engine has lots of little bugs. In particular:
44+
* Escaping does not work for all markup.
45+
* Typesetting is not always correct.
46+
* Some output formats (ri, for example) do not correctly handle all of the
47+
markup.
48+
The markup engine needs a rewrite, which can be tracked here[http://rubyforge.org/tracker/index.php?func=detail&aid=21540&group_id=627&atid=2475].
49+
-------
4350
If you find a bug, please report it at the RDoc project's
4451
tracker[http://rubyforge.org/tracker/?group_id=627] on RubyForge:
4552

lib/rdoc/parser/c.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -626,8 +626,8 @@ def remove_commented_out_lines
626626
end
627627

628628
def remove_private_comments(comment)
629-
comment.gsub!(/\/?\*--(.*?)\/?\*\+\+/m, '')
630-
comment.sub!(/\/?\*--.*/m, '')
629+
comment.gsub!(/\/?\*--\n(.*?)\/?\*\+\+/m, '')
630+
comment.sub!(/\/?\*--\n.*/m, '')
631631
end
632632

633633
##

lib/rdoc/parser/ruby.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2683,8 +2683,8 @@ def read_documentation_modifiers(context, allow)
26832683
end
26842684

26852685
def remove_private_comments(comment)
2686-
comment.gsub!(/^#--.*?^#\+\+/m, '')
2687-
comment.sub!(/^#--.*/m, '')
2686+
comment.gsub!(/^#--\n.*?^#\+\+/m, '')
2687+
comment.sub!(/^#--\n.*/m, '')
26882688
end
26892689

26902690
def remove_token_listener(obj)

lib/rdoc/parser/simple.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def scan
3131
end
3232

3333
def remove_private_comments(comment)
34-
comment.gsub(/^--[^-].*?^\+\+/m, '').sub(/^--.*/m, '')
34+
comment.gsub(/^--\n.*?^\+\+/m, '').sub(/^--\n.*/m, '')
3535
end
3636

3737
end

0 commit comments

Comments
 (0)