Sha256: 4da8ea5fdfe691128f15ffe2b3c2e4881601c274c1c949b2041a7633b3fc4dce

Contents?: true

Size: 449 Bytes

Versions: 21

Compression:

Stored size: 449 Bytes

Contents

require_relative "init"
require_relative "metadata"
require "isodoc"

module IsoDoc
  module Generic
    class PresentationXMLConvert < IsoDoc::PresentationXMLConvert
      def annex1(elem)
        lbl = @xrefs.anchor(elem["id"], :label)
        if t = elem.at(ns("./title"))
          t.children = "<strong>#{to_xml(t.children)}</strong>"
        end
        prefix_name(elem, "<br/>", lbl, "title")
      end

      include Init
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
metanorma-generic-2.7.2 lib/isodoc/generic/presentation_xml_convert.rb
metanorma-generic-2.7.1 lib/isodoc/generic/presentation_xml_convert.rb
metanorma-generic-2.7.0 lib/isodoc/generic/presentation_xml_convert.rb
metanorma-generic-2.6.5 lib/isodoc/generic/presentation_xml_convert.rb
metanorma-generic-2.6.4 lib/isodoc/generic/presentation_xml_convert.rb
metanorma-generic-2.6.3 lib/isodoc/generic/presentation_xml_convert.rb
metanorma-generic-2.6.2 lib/isodoc/generic/presentation_xml_convert.rb
metanorma-generic-2.6.1 lib/isodoc/generic/presentation_xml_convert.rb
metanorma-generic-2.6.0 lib/isodoc/generic/presentation_xml_convert.rb
metanorma-generic-2.5.5 lib/isodoc/generic/presentation_xml_convert.rb
metanorma-generic-2.5.4 lib/isodoc/generic/presentation_xml_convert.rb
metanorma-generic-2.5.3 lib/isodoc/generic/presentation_xml_convert.rb
metanorma-generic-2.5.2 lib/isodoc/generic/presentation_xml_convert.rb
metanorma-generic-2.5.1 lib/isodoc/generic/presentation_xml_convert.rb
metanorma-generic-2.5.0 lib/isodoc/generic/presentation_xml_convert.rb
metanorma-generic-2.4.4 lib/isodoc/generic/presentation_xml_convert.rb
metanorma-generic-2.4.2 lib/isodoc/generic/presentation_xml_convert.rb
metanorma-generic-2.4.1 lib/isodoc/generic/presentation_xml_convert.rb
metanorma-generic-2.4.0 lib/isodoc/generic/presentation_xml_convert.rb
metanorma-generic-2.3.1 lib/isodoc/generic/presentation_xml_convert.rb