]> source.dussan.org Git - redmine.git/commitdiff
Fix a RuboCop offence Style/NegatedWhile (#32971).
authorGo MAEDA <maeda@farend.jp>
Sat, 29 Feb 2020 11:18:18 +0000 (11:18 +0000)
committerGo MAEDA <maeda@farend.jp>
Sat, 29 Feb 2020 11:18:18 +0000 (11:18 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@19542 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/wiki_formatting/textile/redcloth3.rb

index c9bdd0aebb8a3ce83b98ccbb2b8893d32c763d48..7114dd21477281409a098da4e50eb3dc589ef074 100644 (file)
@@ -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