Skip to content
Snippets Groups Projects
Commit 5e23f825 authored by Todd Dembrey's avatar Todd Dembrey
Browse files

Improve the differ to not be greedy at new lines

parent 4d71341c
No related branches found
No related tags found
No related merge requests found
......@@ -38,7 +38,7 @@ def compare(answer_a, answer_b, should_bleach=True):
else:
answer_b = str(answer_b)
diff = SequenceMatcher(None, answer_a, answer_b)
diff = SequenceMatcher(lambda x: '\n' in x, answer_a, answer_b)
output = []
added = []
deleted = []
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment