From b88d1e6b44164bca0c2b85ea6639469813e1e1d8 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Thu, 21 Jan 2021 19:43:02 +0900 Subject: [ruby/rdoc] Make each commit entries h3 https://github.com/ruby/rdoc/commit/11eefb2ae9 --- lib/rdoc/parser/changelog.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'lib/rdoc/parser') diff --git a/lib/rdoc/parser/changelog.rb b/lib/rdoc/parser/changelog.rb index 3634b6a6eb..763ba03d2c 100644 --- a/lib/rdoc/parser/changelog.rb +++ b/lib/rdoc/parser/changelog.rb @@ -226,13 +226,13 @@ class RDoc::Parser::ChangeLog < RDoc::Parser def create_entries entries # git log entries have no strictly itemized style like the old # style, just assume Markdown. - entries.map do |entry, (author, date, body)| - list = RDoc::Markup::List.new(:NOTE) - author = RDoc::Markup::Paragraph.new(author) - list << RDoc::Markup::ListItem.new(date, author) - RDoc::Markdown.parse(body).parts.each {|b| list << b} - list + out = [] + entries.each do |entry, (author, date, body)| + title = RDoc::Markup::Heading.new(3, "#{date} #{author}") + out << title + out.concat RDoc::Markdown.parse(body).parts end + out end end end -- cgit v1.2.3