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 4f0051f commit 9dcd89eCopy full SHA for 9dcd89e
test/show_templates.py
@@ -62,7 +62,7 @@
62
print("\tExample ", example)
63
print("\t--------")
64
output = template.apply(example)
65
- if output[0].strip() == "" or (len(output) > 1 and output[1].strip() == ""):
+ if output[0].strip() == "" or (len(output) > 1 and output[1][0].strip() == ""):
66
print("\t Blank result")
67
continue
68
@@ -73,8 +73,12 @@
73
print("\t", line.replace("\n", "\n\t"))
74
print()
75
print("\tY")
76
- for line in textwrap.wrap(yp, width=width, replace_whitespace=False):
77
- print("\t", line.replace("\n", "\n\t"))
+ for i, y in enumerate(yp):
+ if i > 0:
78
+ print()
79
+ print("\tY")
80
+ for line in textwrap.wrap(y, width=width, replace_whitespace=False):
81
+ print("\t", line.replace("\n", "\n\t"))
82
83
print_counter += 1
84
if print_counter >= 10:
0 commit comments