lib/isodoc/function/utils.rb in isodoc-1.4.2 vs lib/isodoc/function/utils.rb in isodoc-1.5.0
- old
+ new
@@ -150,11 +150,11 @@
end
def populate_template(docxml, _format = nil)
meta = @meta
.get
- .merge(@labels || {})
- .merge(@meta.labels || {})
+ .merge(@labels ? {labels: @labels} : {})
+ .merge(@meta.labels ? {labels: @meta.labels} : {})
.merge(fonts_options || {})
template = liquid(docxml)
template.render(meta.map { |k, v| [k.to_s, empty2nil(v)] }.to_h)
.gsub('<', '<').gsub('>', '>').gsub('&', '&')
end