mirror of
https://github.com/meineerde/redmine.git
synced 2026-02-06 00:53:24 +00:00
code cleanup: rubocop: fix Layout/EmptyLinesAroundBlockBody in lib/redmine/wiki_formatting/textile/redcloth3.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18678 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
94a7c3aa65
commit
76be6f712f
@ -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.
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user