mirror of
https://github.com/redmine/redmine.git
synced 2025-12-16 05:20:28 +01: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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user