Permalink
Browse files

Examples now support more than one output file

  • Loading branch information...
1 parent 94eef08 commit d9e464df9d408368a551d201004d6423e856ea36 @turicas committed May 8, 2012
Showing with 8 additions and 6 deletions.
  1. +8 −6 create-docs.py
View
@@ -84,12 +84,14 @@ def execute(command):
fmt = '\n'.join([' ' + x for x in output_lines.split('\n')])
body.append(fmt)
else:
- output = output.replace("'", '')
- body.append('')
- body.append('The file `%s` will be created with this content::' % \
- output)
- body.append('')
- body.append(file_contents_indented(output))
+ output_files = output.split(',')
+ for output in output_files:
+ output = output.strip().replace("'", '').replace('"', '')
+ body.append('')
+ body.append('The file `%s` will be created with this content::' % \
+ output)
+ body.append('')
+ body.append(file_contents_indented(output))
have_output = True
body = '\n'.join(body)
example_list.append(title + '\n' + body + '\n')

0 comments on commit d9e464d

Please sign in to comment.