lib/softcover/builders/pdf.rb in softcover-1.10.0 vs lib/softcover/builders/pdf.rb in softcover-1.10.1

- old
+ new

@@ -147,12 +147,14 @@ options[:once] || options[:'find-overfull'] || Softcover.test? end # Copies the style file to ensure it's always fresh. def copy_polytexnic_sty(options) + opts = options.dup + opts[:article] = true if article? softcover_sty = File.join(Softcover::Directories::STYLES, 'softcover.sty') - source_sty = File.join(Softcover::Utils.template_dir(options), + source_sty = File.join(Softcover::Utils.template_dir(opts), softcover_sty) FileUtils.cp source_sty, softcover_sty end end end