Sha256: 0f00b61d00d0884481ed2f66886962ec5a889633a5eb429928ed0959531d4d2c
Contents?: true
Size: 499 Bytes
Versions: 27
Compression:
Stored size: 499 Bytes
Contents
require 'mn2pdf' require_relative "./utils.rb" module Metanorma module Output class XslfoPdf < Base 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) end def quote(x) return x if /^'.*'$/.match(x) return x if /^".*"$/.match(x) %("#{x}") end end end end
Version data entries
27 entries across 27 versions & 2 rubygems