diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/rdoc/markup/simple_markup.rb | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Sat Apr 24 10:38:31 2004 Dave Thomas <dave@pragprog.com> + + * lib/rdoc/markup/simple_markup.rb (SM::SimpleMarkup::group_lines): + Fix bug where consecutive headings are merged. + Fri Apr 23 23:26:13 2004 Nobuyoshi Nakada <nobu@ruby-lang.org> * lib/mkmf.rb: $hdrdir should not contain macros for backward diff --git a/lib/rdoc/markup/simple_markup.rb b/lib/rdoc/markup/simple_markup.rb index 18971e23e1..21064cb009 100644 --- a/lib/rdoc/markup/simple_markup.rb +++ b/lib/rdoc/markup/simple_markup.rb @@ -453,7 +453,7 @@ module SM #:nodoc: else wantedType = line.type end - wantedLevel = line.level + wantedLevel = line.type == Line::HEADING ? line.param : line.level end end |