lib/asciidoctor/convert.rb in asciidoctor-2.0.9 vs lib/asciidoctor/convert.rb in asciidoctor-2.0.10
- old
+ new
@@ -50,10 +50,10 @@
options[:to_file] = write_to_target = to_file unless (stream_output = to_file.respond_to? :write)
end
unless options.key? :standalone
if sibling_path || write_to_target
- options[:standalone] = true
+ options[:standalone] = options.fetch :header_footer, true
elsif options.key? :header_footer
options[:standalone] = options[:header_footer]
end
end