Spaces:
Runtime error
Runtime error
fixed the order for word insert
Browse files
app.py
CHANGED
@@ -29,7 +29,7 @@ def diff_strings(a, b):
|
|
29 |
replacement = ""
|
30 |
elif line.startswith("+ "):
|
31 |
if len(replacement) == 0:
|
32 |
-
result.append((
|
33 |
else:
|
34 |
result.append(" ")
|
35 |
result.append((line[2:], replacement, "#ddf"))
|
|
|
29 |
replacement = ""
|
30 |
elif line.startswith("+ "):
|
31 |
if len(replacement) == 0:
|
32 |
+
result.append((line[2:], "", "#dfd"))
|
33 |
else:
|
34 |
result.append(" ")
|
35 |
result.append((line[2:], replacement, "#ddf"))
|