diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-10-19 07:26:59 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-10-19 07:26:59 +0000 |
commit | e3397db9330be3849444c64d9f65d96578468aeb (patch) | |
tree | e95524d2da01de027f53791197e4ab82009f7e28 /lib | |
parent | 30964255f1f30b236db29b5ac50fc98aa93edfd9 (diff) | |
download | redmine-e3397db9330be3849444c64d9f65d96578468aeb.tar.gz redmine-e3397db9330be3849444c64d9f65d96578468aeb.zip |
code cleanup: rubocop: fix Style/WhileUntilModifier in lib/redmine/wiki_formatting/textile/redcloth3.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18738 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r-- | lib/redmine/wiki_formatting/textile/redcloth3.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/redmine/wiki_formatting/textile/redcloth3.rb b/lib/redmine/wiki_formatting/textile/redcloth3.rb index 5d7ac768b..750bf8cac 100644 --- a/lib/redmine/wiki_formatting/textile/redcloth3.rb +++ b/lib/redmine/wiki_formatting/textile/redcloth3.rb @@ -1022,9 +1022,9 @@ class RedCloth3 < String def flush_left( text ) indt = 0 if text =~ /^ / - while text !~ /^ {#{indt}}[^ ]/ - indt += 1 - end unless text.empty? + unless text.empty? + indt += 1 while text !~ /^ {#{indt}}[^ ]/ + end if indt.nonzero? text.gsub!( /^ {#{indt}}/, '' ) end |