Sha256: 9239c6175f7c86d1ccb7ace884b8f7231c16372ad91d3367b1592a5ba6d41632
Contents?: true
Size: 476 Bytes
Versions: 4
Compression:
Stored size: 476 Bytes
Contents
require 'mn2pdf' require_relative "./utils.rb" module Metanorma module Output class XslfoPdf < Base def convert(url_path, output_path, xsl_stylesheet) return if url_path.nil? || output_path.nil? || xsl_stylesheet.nil? Mn2pdf.convert(quote(url_path), quote(output_path), quote(xsl_stylesheet)) end def quote(x) return x if /^'.*'$/.match(x) return x if /^".*"$/.match(x) %("#{x}") end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
metanorma-1.1.6 | lib/metanorma/output/xslfo.rb |
metanorma-1.1.5 | lib/metanorma/output/xslfo.rb |
metanorma-1.1.4 | lib/metanorma/output/xslfo.rb |
metanorma-1.1.3 | lib/metanorma/output/xslfo.rb |