]> source.dussan.org Git - redmine.git/commitdiff
code cleanup: rubocop: fix Layout/EmptyLinesAroundBlockBody in lib/redmine/wiki_forma...
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 15 Oct 2019 11:48:13 +0000 (11:48 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 15 Oct 2019 11:48:13 +0000 (11:48 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@18678 e93f8b46-1217-0410-a6f0-8f06a7374b81

.rubocop_todo.yml
lib/redmine/wiki_formatting/textile/redcloth3.rb

index 0ba5123e86d2395bb53a4f385bc65613921ed702..d5baa92e7eb02b69b83cae13493e64c3c128d19b 100644 (file)
@@ -162,7 +162,6 @@ Layout/EmptyLinesAroundArguments:
 Layout/EmptyLinesAroundBlockBody:
   Exclude:
     - 'db/schema.rb'
-    - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
 
 # Cop supports --auto-correct.
 # Configuration parameters: EnforcedStyle.
index 6f34b51d20dc847398a350e022941173104a82ea..af2e7bcf3ed1af11c31d156bd14784def6e32418 100644 (file)
@@ -531,7 +531,6 @@ class RedCloth3 < String
     # Parses a Textile table block, building HTML from the result.
     def block_textile_table( text )
         text.gsub!( TABLE_RE ) do |matches|
-
             tatts, fullrow = $~[1..2]
             tatts = pba( tatts, 'table' )
             tatts = shelve( tatts ) if tatts
@@ -693,7 +692,6 @@ class RedCloth3 < String
                     blk + "\n#{ code_blk }"
                 end
             end
-
         end.join( "\n\n" ) )
     end
 
@@ -795,7 +793,6 @@ class RedCloth3 < String
     def inline_textile_span( text )
         QTAGS.each do |qtag_rc, ht, qtag_re, rtype|
             text.gsub!( qtag_re ) do |m|
-
                 case rtype
                 when :limit
                     sta,oqs,qtag,content,oqa = $~[1..6]
@@ -811,7 +808,6 @@ class RedCloth3 < String
                 atts = shelve( atts ) if atts
 
                 "#{ sta }#{ oqs }<#{ ht }#{ atts }>#{ content }</#{ ht }>#{ oqa }"
-
             end
         end
     end