1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-02-01 03:57:15 +00:00

Fixes rubocop offenses (#40197).

git-svn-id: https://svn.redmine.org/redmine/trunk@23250 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Marius Balteanu 2024-11-11 18:41:12 +00:00
parent c0bb500242
commit 5851f65bb8
2 changed files with 3 additions and 3 deletions

View 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

View 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