This package browser is in early development. Mind the rough edges.

ruby-heredoc-unindent 1.2.0

Heredoc indentation cleaner

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 beginning 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.

Installation

Install ruby-heredoc-unindent 1.2.0 as follows:

guix install ruby-heredoc-unindent@1.2.0

Or install the latest version:

guix install ruby-heredoc-unindent

You can also install packages in augmented, pure or containerized environments for development or simply to try them out without polluting you user profile. See the guix shell documentation for more information.