mirror of
https://github.com/meineerde/redmine.git
synced 2026-02-06 09:03:25 +00:00
code cleanup: rubocop: fix Layout/IndentAssignment in lib/redmine/wiki_formatting/textile/redcloth3.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18679 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
76be6f712f
commit
695a03b3eb
@ -214,7 +214,6 @@ Layout/ExtraSpacing:
|
||||
Layout/IndentAssignment:
|
||||
Exclude:
|
||||
- 'app/helpers/application_helper.rb'
|
||||
- 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
|
||||
- 'test/unit/lib/redmine/helpers/gantt_test.rb'
|
||||
|
||||
# Cop supports --auto-correct.
|
||||
|
||||
@ -327,17 +327,14 @@ class RedCloth3 < String
|
||||
# (from PyTextile)
|
||||
#
|
||||
TEXTILE_TAGS =
|
||||
|
||||
[[128, 8364], [129, 0], [130, 8218], [131, 402], [132, 8222], [133, 8230],
|
||||
[134, 8224], [135, 8225], [136, 710], [137, 8240], [138, 352], [139, 8249],
|
||||
[140, 338], [141, 0], [142, 0], [143, 0], [144, 0], [145, 8216], [146, 8217],
|
||||
[147, 8220], [148, 8221], [149, 8226], [150, 8211], [151, 8212], [152, 732],
|
||||
[153, 8482], [154, 353], [155, 8250], [156, 339], [157, 0], [158, 0], [159, 376]].
|
||||
|
||||
collect! do |a, b|
|
||||
[a.chr, ( b.zero? and "" or "&#{ b };" )]
|
||||
end
|
||||
|
||||
[[128, 8364], [129, 0], [130, 8218], [131, 402], [132, 8222], [133, 8230],
|
||||
[134, 8224], [135, 8225], [136, 710], [137, 8240], [138, 352], [139, 8249],
|
||||
[140, 338], [141, 0], [142, 0], [143, 0], [144, 0], [145, 8216], [146, 8217],
|
||||
[147, 8220], [148, 8221], [149, 8226], [150, 8211], [151, 8212], [152, 732],
|
||||
[153, 8482], [154, 353], [155, 8250], [156, 339], [157, 0], [158, 0], [159, 376]].
|
||||
collect! do |a, b|
|
||||
[a.chr, ( b.zero? and "" or "&#{ b };" )]
|
||||
end
|
||||
#
|
||||
# Regular expressions to convert to HTML.
|
||||
#
|
||||
@ -381,8 +378,8 @@ class RedCloth3 < String
|
||||
QTAGS.collect! do |rc, ht, rtype|
|
||||
rcq = Regexp::quote rc
|
||||
re =
|
||||
case rtype
|
||||
when :limit
|
||||
case rtype
|
||||
when :limit
|
||||
/(^|[>\s\(]) # sta
|
||||
(?!\-\-)
|
||||
(#{QTAGS_JOIN}|) # oqs
|
||||
@ -392,13 +389,13 @@ class RedCloth3 < String
|
||||
#{rcq}
|
||||
(#{QTAGS_JOIN}|) # oqa
|
||||
(?=[[:punct:]]|<|\s|\)|$)/x
|
||||
else
|
||||
else
|
||||
/(#{rcq})
|
||||
(#{C})
|
||||
(?::(\S+))?
|
||||
([[:word:]]|[^\s\-].*?[^\s\-])
|
||||
#{rcq}/xm
|
||||
end
|
||||
end
|
||||
[rc, ht, re, rtype]
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user