diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-10-15 11:48:37 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-10-15 11:48:37 +0000 |
commit | c82054a651daa253d5dd8778168067a79dc43a3c (patch) | |
tree | 372266f4748f132d46e65857239d56479bf0504f /lib/redmine/wiki_formatting/textile | |
parent | 695a03b3ebb7e4253f1af38ab383a426a871d9c4 (diff) | |
download | redmine-c82054a651daa253d5dd8778168067a79dc43a3c.tar.gz redmine-c82054a651daa253d5dd8778168067a79dc43a3c.zip |
code cleanup: rubocop: fix Style/IfWithSemicolon in lib/redmine/wiki_formatting/textile/redcloth3.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18680 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/wiki_formatting/textile')
-rw-r--r-- | lib/redmine/wiki_formatting/textile/redcloth3.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine/wiki_formatting/textile/redcloth3.rb b/lib/redmine/wiki_formatting/textile/redcloth3.rb index 300afdc11..d68c3a264 100644 --- a/lib/redmine/wiki_formatting/textile/redcloth3.rb +++ b/lib/redmine/wiki_formatting/textile/redcloth3.rb @@ -739,7 +739,7 @@ class RedCloth3 < String SETEXT_RE = /\A(.+?)\n([=-])[=-]* *$/m def block_markdown_setext( text ) if text =~ SETEXT_RE - tag = if $2 == "="; "h1"; else; "h2"; end + tag = ($2 == "=" ? "h1" : "h2") blk, cont = "<#{ tag }>#{ $1 }</#{ tag }>", $' blocks cont text.replace( blk + cont ) |