File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -98,19 +98,19 @@ def main():
98
98
# Handle output of YAML here
99
99
this_result_output = []
100
100
for field in row .keys ():
101
- show_field = " show_" + field
102
- if show_field == 'show_filename' :
103
- filename_yaml = yaml . dump ({ 'filename' : row [ 'filename' ]})
104
- this_result_output . append ( filename_yaml . rstrip () )
105
- elif show_field == 'show_document' :
106
- continue
107
- elif argsd . get ( show_field , None ):
108
- if row [field ]:
109
- if z :
110
- this_result_output .append (z .get_yaml ([field ]).rstrip ())
111
- else :
112
- this_result_output .append ("%s:" % field )
113
- this_result_output .append (row [field ])
101
+ show_field = ' show_' + field
102
+ if argsd . get ( show_field , None ) :
103
+ if field == 'filename' :
104
+ filename_yaml = yaml . dump ({ 'filename' : row [ 'filename' ]} )
105
+ this_result_output . append ( filename_yaml . rstrip ())
106
+ elif field == 'document' :
107
+ continue
108
+ elif row [field ]:
109
+ if z :
110
+ this_result_output .append (z .get_yaml ([field ]).rstrip ())
111
+ else :
112
+ this_result_output .append ("%s:" % field )
113
+ this_result_output .append (row [field ])
114
114
115
115
# No output if just --- and ---
116
116
if len (this_result_output ) > 0 :
You can’t perform that action at this time.
0 commit comments