Rstripping was there to keep things neat and tidy, unfortunately it's
possible to have some ruby code where whitespace is significant.
I've left the lstripping in because it will not trigger inside a string
and so cannot occlude a closing whitespace delimeter at the start of a
line.
Clean up repeating code on the subject of str_output variable. Fix
indentation in some files and restructure some tests, in order to
ease parsing of files by an eye.
Signed-off-by: Kyrylo Silin <kyrylosilin@gmail.com>
Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
This is not fixed on rbx — maybe we should consider using the data we've
collected in indent.rb to look for unbalanced open/close tokens too on
rbx as it's error messages often elide the "Expected }" part of the
message.