lib/isodoc/function/utils.rb in isodoc-0.10.2 vs lib/isodoc/function/utils.rb in isodoc-0.10.3

- old
+ new

@@ -135,9 +135,10 @@ def populate_template(docxml, _format) meta = @meta.get.merge(@labels || {}) docxml = docxml. gsub(/\[TERMREF\]\s*/, l10n("[#{@source_lbl}: ")). + gsub(/\s*\[MODIFICATION\]\s*\[\/TERMREF\]/, l10n(", #{@modified_lbl} [/TERMREF]")). gsub(/\s*\[\/TERMREF\]\s*/, l10n("]")). gsub(/\s*\[MODIFICATION\]/, l10n(", #{@modified_lbl} — ")) template = liquid(docxml) template.render(meta.map { |k, v| [k.to_s, empty2nil(v)] }.to_h). gsub('<', '<').gsub('>', '>').gsub('&', '&')