lib/metanorma/default/isodoc.rb in mn-requirements-0.1.7 vs lib/metanorma/default/isodoc.rb in mn-requirements-0.1.8

- old
+ new

@@ -43,16 +43,16 @@ def recommendation_header(node, out) label, title, name = recommendation_labels(node) ret = name ? [name] : [] if label || title - ret << l10n(":") unless ret.empty? + ret << ":" unless ret.empty? ret += ["<br/>", label] - ret << l10n(". ") if label && title + ret << ". " if label && title ret << title end - out << "<name>#{ret.compact.join}</name>" + out << "<name>#{l10n(ret.compact.join)}</name>" out end def recommendation_attributes1(node, out) oblig = node["obligation"] and @@ -74,10 +74,11 @@ end def recommendation_attr_keyvalue(node, key, value) tag = node.at(ns("./#{key}")) or return nil value = node.at(ns("./#{value}")) or return nil - "#{tag.text.capitalize}: #{value.children.to_xml}" + l10n("#{Metanorma::Utils.strict_capitalize_first tag.text}: "\ + "#{value.children.to_xml}") end def recommendation_attributes(node, out) ret = recommendation_attributes1(node, []) .map { |a| "<em>#{a}</em>" }