fix tests and bug

This commit is contained in:
Paul Gauthier 2023-05-11 17:15:19 -07:00
parent fe4a2836b7
commit 6133eb61c1
2 changed files with 6 additions and 3 deletions

View file

@ -44,7 +44,10 @@ def replace_most_similar_chunk(whole, part, replace):
+ replace_lines
+ whole_lines[most_similar_chunk_end:]
)
modified_whole = "\n".join(modified_whole) + "\n"
modified_whole = "\n".join(modified_whole)
if whole.endswith("\n"):
modified_whole += "\n"
return modified_whole