lib/isodoc/pdf_convert.rb in isodoc-1.5.5 vs lib/isodoc/pdf_convert.rb in isodoc-1.6.0
- old
+ new
@@ -40,11 +40,9 @@
output_filename || "#{filename}.#{@suffix}")
FileUtils.rm_rf ["#{filename}.tmp.html", tmpimagedir]
end
def xref_parse(node, out)
- target = /#/.match(node["target"]) ? node["target"].sub(/#/, ".pdf#") :
- "##{node["target"]}"
- out.a(**{ "href": target }) { |l| l << get_linkend(node) }
+ out.a(**{ "href": target_pdf(node) }) { |l| l << get_linkend(node) }
end
end
end