lib/changelog/plugin.rb in danger-changelog-0.6.0 vs lib/changelog/plugin.rb in danger-changelog-0.6.1

- old
+ new

@@ -73,19 +73,20 @@ changelog_file = Danger::Changelog::ChangelogFile.new(filename, parser: parser) if changelog_file.exists? changelog_file.parse changelog_file.bad_lines.each do |line| - markdown <<-MARKDOWN -```markdown -#{line}``` + markdown <<~MARKDOWN + ```markdown + #{line.map(&:strip).join("\n")} + ``` MARKDOWN end messaging.fail(parser.bad_line_message(filename), sticky: false) if changelog_file.bad_lines? changelog_file.global_failures.each do |failure| - messaging.fail(failure, sticy: false) + messaging.fail(failure, sticky: false) end changelog_file.good? else messaging.fail("The #{filename} file does not exist.", sticky: false) @@ -94,15 +95,15 @@ end private def warn_update_changelog - markdown <<-MARKDOWN -Here's an example of a #{filename} entry: + markdown <<~MARKDOWN + Here's an example of a #{filename} entry: -```markdown -#{Danger::Changelog::ChangelogEntryLine.example(github)} -``` + ```markdown + #{Danger::Changelog::ChangelogEntryLine.example(github)} + ``` MARKDOWN warn "Unless you're refactoring existing code or improving documentation, please update #{filename}.", sticky: false end end end