fix bug with newlines.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import pywikidiff2
|
||||
|
||||
obj = pywikidiff2.pywikidiff2()
|
||||
obj = pywikidiff2.pywikidiff2(numContextLines=100000)
|
||||
obj = pywikidiff2.pywikidiff2(numContextLines=500000)
|
||||
print(obj.num_context_lines())
|
||||
print(obj.moved_line_threshold())
|
||||
print(obj.change_threshold())
|
||||
@@ -10,6 +10,6 @@ print(obj.max_split_size())
|
||||
print(obj.initial_split_threshold())
|
||||
print(obj.final_split_threshold())
|
||||
|
||||
res = obj.inline_json_diff("help! I'm alive", "help! dead I am")
|
||||
res = obj.inline_json_diff("help! \n I'm alive", "help! \n dead I am")
|
||||
print('\n')
|
||||
print(res)
|
||||
|
||||
Reference in New Issue
Block a user