lib/isodoc/gb/gbwordrender.rb in metanorma-gb-1.0.7 vs lib/isodoc/gb/gbwordrender.rb in metanorma-gb-1.0.8

- old
+ new

@@ -119,10 +119,10 @@ def termref_render(x) parts = x.split(%r{(\s*\[MODIFICATION\]|,)}m) parts[1] = l10n(", #{@source_lbl}") if parts.size > 1 && parts[1] == "," parts.map do |p| - /\s*\[MODIFICATION\]/.match?(p) ? l10n(", #{@modified_lbl} — ") : p + /\s*\[MODIFICATION\]/.match(p) ? l10n(", #{@modified_lbl} — ") : p end.join.sub(/\A\s*/m, l10n("[")).sub(/\s*\z/m, l10n("]")) end def termref_resolve(docxml) docxml.split(%r{(\[TERMREF\]|\[/TERMREF\])}).each_slice(4).