class Metanorma::Output::XslfoPdf

Public Instance Methods

convert(url_path, output_path, xsl_stylesheet, options = "") click to toggle source
# File lib/metanorma/output/xslfo.rb, line 7
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
quote(x) click to toggle source
# File lib/metanorma/output/xslfo.rb, line 13
def quote(x)
  return x if /^'.*'$/.match(x)
  return x if /^".*"$/.match(x)
  %("#{x}")
end