lib/metanorma/output/xslfo.rb in isodoc-1.7.7 vs lib/metanorma/output/xslfo.rb in isodoc-1.8.0
- old
+ new
@@ -1,21 +1,14 @@
-require 'mn2pdf'
-require_relative "./utils.rb"
+require "mn2pdf"
+require_relative "./utils"
module Metanorma
module Output
class XslfoPdf < Base
- def convert(url_path, output_path, xsl_stylesheet, options = "")
+ def convert(url_path, output_path, xsl_stylesheet, options = {})
return if url_path.nil? || output_path.nil? || xsl_stylesheet.nil?
- Mn2pdf.convert(quote(url_path), quote(output_path), quote(xsl_stylesheet), options)
+ Mn2pdf.convert(url_path, output_path, xsl_stylesheet, options)
end
-
- def quote(x)
- return x if /^'.*'$/.match(x)
- return x if /^".*"$/.match(x)
- %("#{x}")
- end
end
end
end
-