]> source.dussan.org Git - redmine.git/commitdiff
Fixes rubocop offenses (#40197).
authorMarius Balteanu <marius.balteanu@zitec.com>
Mon, 11 Nov 2024 18:41:12 +0000 (18:41 +0000)
committerMarius Balteanu <marius.balteanu@zitec.com>
Mon, 11 Nov 2024 18:41:12 +0000 (18:41 +0000)
git-svn-id: https://svn.redmine.org/redmine/trunk@23250 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/wiki_formatting/common_mark/formatter.rb
lib/redmine/wiki_formatting/common_mark/markdown_filter.rb

index 2eee19fa3845004e59531bf74051d647a42b39cc..aab8eed8b09a666ebb31cb46602ad304ce74018e 100644 (file)
@@ -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
index 0b7f52ea3b5cba92b63b3969d9dcea7af0527aba..b52a20f1c13dd76c663e8ee370f29b83b926191c 100644 (file)
@@ -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