Skip to content

Commit

Permalink
refactor: only one instance of info() : metanorma/metanorma-itu#514
Browse files Browse the repository at this point in the history
  • Loading branch information
opoudjis committed May 11, 2024
1 parent 923f5ec commit 2f67126
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion lib/isodoc/html_function/postprocess.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ def resize_images(docxml)
docxml.xpath("//*[local-name() = 'img' or local-name() = 'svg']")
.each do |i|
loc = image_localfile(i) or next
require "debug"; binding.b
i["width"], i["height"] = Vectory::ImageResize.new
.call(i, loc, @maxheight, @maxwidth)
end
Expand Down
3 changes: 2 additions & 1 deletion lib/isodoc/presentation_xml_convert.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ def initialize(options)
def convert1(docxml, _filename, _dir)
docid_prefixes(docxml) # feeds @xrefs.parse citation processing
@xrefs.parse docxml
info docxml, nil
@xrefs.klass.meta = @meta
@xrefs.klass.info docxml, nil
conversions(docxml)
docxml.root["type"] = "presentation"
docxml.to_xml.gsub("<", "<").gsub(">", ">")
Expand Down

0 comments on commit 2f67126

Please sign in to comment.