Layout/EmptyLinesAroundBlockBody:
Exclude:
- 'db/schema.rb'
- - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# 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
blk + "\n#{ code_blk }"
end
end
-
end.join( "\n\n" ) )
end
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]
atts = shelve( atts ) if atts
"#{ sta }#{ oqs }<#{ ht }#{ atts }>#{ content }</#{ ht }>#{ oqa }"
-
end
end
end