whenever icon indicating copy to clipboard operation
whenever copied to clipboard

Multiple space in code will also become subject of squish

Open akicho8 opened this issue 8 years ago • 0 comments

Thank you for a wonderful library.

There is one thing in trouble. It is a little inconvenient to squish multiple spaces. It is good to make one space before and after a line break. But, if possible, I do not want squish the space in the code. Please consider.

https://github.com/javan/whenever/blob/21ce00be97bb3c1c58994b6debb776e8259a303e/lib/whenever/job.rb#L44

Steps to reproduce

every 1.hour do
  runner "p '  '"
end

Expected behavior

0 * * * * /bin/bash -l -c 'cd /path/to/myapp && bin/rails runner -e production '\''p '\''\'\'''\''  '\''\'\'''\'''\'' >> log/cron.log'

Actual behavior

0 * * * * /bin/bash -l -c 'cd /path/to/myapp && bin/rails runner -e production '\''p '\''\'\'''\'' '\''\'\'''\'''\'' >> log/cron.log'

Multiple spaces are now one.

System configuration

whenever version: 0.10.0 Ruby version: ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-darwin16]

akicho8 avatar Dec 17 '17 00:12 akicho8