mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-31 11:37:14 +00:00
Fix a RuboCop offence Style/NegatedWhile (#32971).
git-svn-id: http://svn.redmine.org/redmine/trunk@19542 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
b9b841b23f
commit
0ba13a0bd3
@ -1025,7 +1025,7 @@ class RedCloth3 < String
|
||||
end
|
||||
if /^ +\S/.match?(text)
|
||||
indt = 0
|
||||
indt += 1 while !/^ {#{indt}}\S/.match?(text)
|
||||
indt += 1 until /^ {#{indt}}\S/.match?(text)
|
||||
if indt.nonzero?
|
||||
text.gsub!( /^ {#{indt}}/, '' )
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user