Stronger prompt

This commit is contained in:
Paul Gauthier 2023-06-24 15:49:26 -07:00
parent ac560c2877
commit a1f4ae6a07
3 changed files with 14 additions and 7 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.readlines()
orig_lines = full_path.read_text().splitlines()
show_diff = diffs.diff_partial_update(
orig_lines,
@ -93,7 +93,7 @@ class WholeFileCoder(Coder):
full_path = (Path(self.root) / fname).absolute()
if mode == "diff" and full_path.exists():
orig_lines = full_path.readlines()
orig_lines = full_path.read_text.splitlines()
show_diff = diffs.diff_partial_update(
orig_lines,