lib/output/htmlout.rb in prenus-0.0.11 vs lib/output/htmlout.rb in prenus-0.0.12
- old
+ new
@@ -129,14 +129,10 @@
f.puts target_lookup
close_html_header(f)
- unless @options[:indexfile].nil?
- IO.copy_stream(File.open(@options[:indexfile]),f)
- end
-
body = '<div style="width: 800px; margin-left: auto; margin-right: auto; padding-top: 30px;">'
body += '<div id="pie_graph" style="min-width: 375px; height: 375px; margin: 0 auto; float: left"></div>'
body += '<div id="pie_graph2" style="min-width: 375px; height: 375px; margin: 0 auto; float: left"></div>'
body += '</div>'
body += '<div style="clear: both;"></div>'
@@ -517,9 +513,13 @@
</script>
</head>
<body>
<script src="highcharts.js"></script>
eos
+
+ unless @options[:indexfile].nil?
+ IO.copy_stream(File.open(@options[:indexfile]),fp)
+ end
end
#
# Prints out miscellanrous HTML text into the nominated output file
#
\ No newline at end of file