We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af16dec commit 3d77827Copy full SHA for 3d77827
gendiff/formater/to_plain.py
@@ -20,7 +20,7 @@ def convert(elem):
20
return '[complex value]'
21
22
23
-def format(diffs, path=""):
+def get_plain(diffs, path=""):
24
lines = []
25
for item in diffs:
26
head = f"{path}{item['name']}"
@@ -34,6 +34,10 @@ def format(diffs, path=""):
34
tail = f". From {(value[0])} to {value[1]}"
35
lines.append(f"{level}{item['meta']}{tail}")
36
if is_nest(item) and item['meta'] == 'unchanged':
37
- value = format(item['children'], f"{head}.")
+ value = get_plain(item['children'], f"{head}.")
38
lines.append(f"{value}")
39
return '\n'.join(lines)
40
+
41
42
+def format(diff):
43
+ return get_plain(diff)
0 commit comments