Currently a lot of lovely patches have broken indentation due to how newlines are handled: in pattern patches, after .split() on a payload containing a trailing newline, the empty string after that newline is returned, and indent is prepended to that empty string. In addition, regex patches sometimes have strange behavior with newlines.
We should be consistent and use split_inclusive and Rope::raw_lines() everywhere.
Currently a lot of lovely patches have broken indentation due to how newlines are handled: in pattern patches, after .split() on a payload containing a trailing newline, the empty string after that newline is returned, and indent is prepended to that empty string. In addition, regex patches sometimes have strange behavior with newlines.
We should be consistent and use split_inclusive and Rope::raw_lines() everywhere.