Skip to content

Commit

Permalink
write preprocessed Presentation XML for PDF processing to tempfile: m…
Browse files Browse the repository at this point in the history
  • Loading branch information
opoudjis committed Apr 4, 2023
1 parent 3c28904 commit b9ad5e2
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions lib/isodoc/xslfo_convert.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,17 +65,15 @@ def convert(input_filename, file = nil, debug = false,
end

def xref_parse(node, out)
out.a(**{ href: target_pdf(node) }) { |l| l << get_linkend(node) }
out.a(href: target_pdf(node)) { |l| l << get_linkend(node) }
end

def input_xml_path(input_filename, xml_file, debug)
docxml, filename, dir = convert_init(xml_file, input_filename, debug)
unless /\.xml$/.match?(input_filename)
input_filename = Tempfile.open([filename, ".xml"],
encoding: "utf-8") do |f|
f.write xml_file
f.path
end
input_filename = Tempfile.open([filename, ".xml"],
encoding: "utf-8") do |f|
f.write xml_file
f.path
end
FileUtils.rm_rf dir

Expand Down

0 comments on commit b9ad5e2

Please sign in to comment.