I’ve written an indent_string/3
and am porting the Python test cases for textwrap.indent
and textwrap.dedent
.
In the process, I’ve discovered a few differences between Python’s textwrap.dedent
and library(string)
's dedent_string/3
, particularly with the handling of empty lines. I’ll start a new discussion on this once I’ve finished porting the test cases. I’ll also discuss split_lines
, and why we might want something different from split_string(In, "\n", "", Lines)
.