Merge branch 'main' into triple-backticks

This commit is contained in:
Paul Gauthier 2023-06-25 19:34:20 -07:00
commit 2b8717bdb6
5 changed files with 41 additions and 16 deletions

View file

@ -44,7 +44,7 @@ class WholeFileCoder(Coder):
full_path = (Path(self.root) / fname).absolute()
if mode == "diff" and full_path.exists():
orig_lines = full_path.read_text().splitlines()
orig_lines = full_path.read_text().splitlines(keepends=True)
show_diff = diffs.diff_partial_update(
orig_lines,
@ -99,7 +99,7 @@ class WholeFileCoder(Coder):
full_path = (Path(self.root) / fname).absolute()
if mode == "diff" and full_path.exists():
orig_lines = full_path.read_text().splitlines()
orig_lines = full_path.read_text().splitlines(keepends=True)
show_diff = diffs.diff_partial_update(
orig_lines,