cahya commited on
Commit
f24b138
1 Parent(s): 5bdcff2

fixed the order for word insert

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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(("", line[2:], "#dfd"))
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"))