Fork me on GitHub
#parinfer
<
2016-12-07
>
tianshu02:12:17

IMO, replace text line by line, instead of replace whole region. some text editor can customize newline character.

eraserhd15:12:40

@shaunlebron newline-at-end-of-file is a pain. I think it's preferred, but doesn't count as a line.

eraserhd15:12:02

At least, it seemed I screwed up more files when I had Avi never write it then I did when I had Avi always write it.

eraserhd15:12:40

But I'm actually going to move to storing the file contents as a string, so that the trailing newline isn't changed unless the last line is edited, because I just don't want to be responsible for always changing it 🙂