lib/isodoc/itu/pdf_convert.rb in metanorma-itu-2.3.1 vs lib/isodoc/itu/pdf_convert.rb in metanorma-itu-2.3.2

- old
+ new

@@ -10,12 +10,11 @@ @libdir = File.dirname(__FILE__) @hierarchical_assets = options[:hierarchicalassets] super end - def pdf_stylesheet(docxml) - doctype = docxml&.at(ns("//bibdata/ext/doctype"))&.text - if File.exist?(File.join(@libdir, "itu.#{doctype}.xsl")) + def pdf_stylesheet(_docxml) + if File.exist?(File.join(@libdir, "itu.#{@doctype}.xsl")) "itu.#{doctype}.xsl" else "itu.recommendation.xsl" end end