Lines Matching refs:output_file

91     output_file = open(output_filename, "wb")
93 print >> output_file, "<html><head>"
94 print >> output_file, HTML_OUTPUT_CSS
95 …print >> output_file, '</head><body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0">'
98 print >> output_file, '<div class="toc">'
99 print >> output_file, "<ul>"
107 …print >> output_file, '<li><a href="#id%d">%s</a></li>' % (id_table.get(filename), stripped_filena…
109 print >> output_file, "</ul>"
110 print >> output_file, "</div><!-- table of contents -->"
112 print >>output_file, '<table cellpadding="0" cellspacing="0" border="0">'
114 print >> output_file, '<tr id="id%d"><td class="same-license">' % id_table.get(value[0])
115 print >> output_file, '<div class="label">Notices for file(s):</div>'
116 print >> output_file, '<div class="file-list">'
118 print >> output_file, "%s <br/>" % (SRC_DIR_STRIP_RE.sub(r"\1", filename))
119 print >> output_file, "</div><!-- file-list -->"
120 print >> output_file
121 print >> output_file, '<pre class="license-text">'
122 print >> output_file, html_escape(open(value[0]).read())
123 print >> output_file, "</pre><!-- license-text -->"
124 print >> output_file, "</td></tr><!-- same-license -->"
125 print >> output_file
126 print >> output_file
127 print >> output_file
130 print >> output_file, "</table>"
131 print >> output_file, "</body></html>"
132 output_file.close()
138 output_file = open(output_filename, "wb")
139 print >> output_file, file_title
141 print >> output_file, "============================================================"
142 print >> output_file, "Notices for file(s):"
144 print >> output_file, SRC_DIR_STRIP_RE.sub(r"\1", filename)
145 print >> output_file, "------------------------------------------------------------"
146 print >> output_file, open(value[0]).read()
147 output_file.close()
162 output_file = open(output_filename, "wb")
164 print >> output_file, '<?xml version="1.0" encoding="utf-8"?>'
165 print >> output_file, "<licenses>"
173 …print >> output_file, '<file-name contentId="%s">%s</file-name>' % (id_table.get(filename), stripp…
175 print >> output_file
176 print >> output_file
186 …print >> output_file, '<file-content contentId="%s"><![CDATA[%s]]></file-content>' % (file_key, ht…
187 print >> output_file
190 print >> output_file, "</licenses>"
191 output_file.close()