From 5851f65bb8b1c6a469b7ffa66a744f459faf739d Mon Sep 17 00:00:00 2001 From: Marius Balteanu Date: Mon, 11 Nov 2024 18:41:12 +0000 Subject: [PATCH] Fixes rubocop offenses (#40197). git-svn-id: https://svn.redmine.org/redmine/trunk@23250 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine/wiki_formatting/common_mark/formatter.rb | 2 +- lib/redmine/wiki_formatting/common_mark/markdown_filter.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/redmine/wiki_formatting/common_mark/formatter.rb b/lib/redmine/wiki_formatting/common_mark/formatter.rb index 2eee19fa3..aab8eed8b 100644 --- a/lib/redmine/wiki_formatting/common_mark/formatter.rb +++ b/lib/redmine/wiki_formatting/common_mark/formatter.rb @@ -41,7 +41,7 @@ module Redmine # https://github.com/gjtorikian/commonmarker#render-options commonmarker_render_options: { unsafe: true, - hardbreaks: Redmine::Configuration['common_mark_enable_hardbreaks'] == true ? true : false, + hardbreaks: Redmine::Configuration['common_mark_enable_hardbreaks'] == true, }.freeze, commonmarker_plugins: { syntax_highlighter: nil diff --git a/lib/redmine/wiki_formatting/common_mark/markdown_filter.rb b/lib/redmine/wiki_formatting/common_mark/markdown_filter.rb index 0b7f52ea3..b52a20f1c 100644 --- a/lib/redmine/wiki_formatting/common_mark/markdown_filter.rb +++ b/lib/redmine/wiki_formatting/common_mark/markdown_filter.rb @@ -33,10 +33,10 @@ module Redmine def call html = Commonmarker.to_html(@text, options: { - extension: extensions, + extension: extensions, render: render_options, parse: parse_options - }, plugins: plugins ) + }, plugins: plugins) html.rstrip! html -- 2.39.5