Removes the common leading indentation from a multi-line string: the first
line is dropped if it is only indentation, the minimum indent shared by the
remaining lines is stripped, and a single trailing whitespace-only line is
removed. This is a self-contained reimplementation of the dedenting that
glue::glue() applied to these templates, kept so the code writers do
not depend on glue. Operates on ASCII input.
