lib/isodoc/function/utils.rb in isodoc-1.0.16 vs lib/isodoc/function/utils.rb in isodoc-1.0.17

- old
+ new

@@ -136,10 +136,10 @@ def empty2nil(v) return nil if !v.nil? && v.is_a?(String) && v.empty? v end - def populate_template(docxml, _format) + def populate_template(docxml, _format = nil) meta = @meta.get.merge(@labels || {}) template = liquid(docxml) template.render(meta.map { |k, v| [k.to_s, empty2nil(v)] }.to_h). gsub('<', '<').gsub('>', '>').gsub('&', '&') end