summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-04-24 01:39:45 +0000
committerdave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-04-24 01:39:45 +0000
commit307a0438359491b494251a5601148e1c0b6d532f (patch)
treeb3b4f0aaafedfb770337f0bb79fc123fc1cb5233
parent73fca1e1868fd8e7b3874cf644d88a8d1134eb04 (diff)
downloadruby-307a0438359491b494251a5601148e1c0b6d532f.tar.gz
ruby-307a0438359491b494251a5601148e1c0b6d532f.tar.xz
ruby-307a0438359491b494251a5601148e1c0b6d532f.zip
Fix bug where consecutive headings were merged
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6210 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--lib/rdoc/markup/simple_markup.rb2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index d255ae438..72641f0c9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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:24:47 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 18971e23e..21064cb00 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