diff options
author | Go MAEDA <maeda@farend.jp> | 2020-02-29 11:18:18 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2020-02-29 11:18:18 +0000 |
commit | 0ba13a0bd3fb19d63eccbbf1ee5d35f65a210d8e (patch) | |
tree | 4e47495834aff90a582e380642d330a2432d8576 | |
parent | b9b841b23f274fe42edc2702ef058600ba6cc77c (diff) | |
download | redmine-0ba13a0bd3fb19d63eccbbf1ee5d35f65a210d8e.tar.gz redmine-0ba13a0bd3fb19d63eccbbf1ee5d35f65a210d8e.zip |
Fix a RuboCop offence Style/NegatedWhile (#32971).
git-svn-id: http://svn.redmine.org/redmine/trunk@19542 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | lib/redmine/wiki_formatting/textile/redcloth3.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine/wiki_formatting/textile/redcloth3.rb b/lib/redmine/wiki_formatting/textile/redcloth3.rb index c9bdd0aeb..7114dd214 100644 --- a/lib/redmine/wiki_formatting/textile/redcloth3.rb +++ b/lib/redmine/wiki_formatting/textile/redcloth3.rb @@ -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 |