unwrap¶
- lsst.daf.butler.cli.utils.unwrap(val)¶
Remove newlines and leading whitespace from a multi-line string with a consistent indentation level.
The first line of the string may be only a newline or may contain text followed by a newline, either is ok. After the first line, each line must begin with a consistant amount of whitespace. So, content of a triple-quoted string may begin immediately after the quotes, or the string may start with a newline. Each line after that must be the same amount of indentation/whitespace followed by text and a newline. The last line may end with a new line but is not required to do so.