Sign in Sign up
rubygems

heredoc_unindent

This gem removes common margin from indented strings, such as the ones produced by indented heredocs. In other words, it strips out leading whitespace chars at the beggining of each line, but only as much as the line with the smallest margin. It is acknowledged that many strings defined by heredocs are just code and fact is that most parsers are insensitive to indentation. If, however, the strings are to be used otherwise, be it for printing or testing, the extra indentation will probably be an issue and hence this gem.

Activity

Latest release
11y ago
Total releases
11
Cadence
~daily
Last 12 months
0

Details

License
MIT
First release
Jan 17, 2011
Releases
Version Released
1.2.0 minor
1.1.2 patch
1.1.0 minor
1.1.1 patch
1.0.5 patch
1.0.6 patch
1.0.4 patch
1.0.3 patch
1.0.1 patch
1.0.2 patch
1.0.0 initial