From 8e47df7b6c9d6629de1e7984316fe686a24d13e9 Mon Sep 17 00:00:00 2001 From: dave Date: Sat, 24 Apr 2004 01:39:45 +0000 Subject: [PATCH] Fix bug where consecutive headings were merged git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6210 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ lib/rdoc/markup/simple_markup.rb | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d255ae438e..72641f0c91 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sat Apr 24 10:38:31 2004 Dave Thomas + + * lib/rdoc/markup/simple_markup.rb (SM::SimpleMarkup::group_lines): + Fix bug where consecutive headings are merged. + Fri Apr 23 23:24:47 2004 Nobuyoshi Nakada * 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