Sha256: 86e392316539519bed3580b556768c4c857e15d348b76451cb69914dba802b94

Contents?: true

Size: 532 Bytes

Versions: 6

Compression:

Stored size: 532 Bytes

Contents

require_relative "init"
require "metanorma-generic"
require "isodoc"

module IsoDoc
  module M3AAWG
    class PresentationXMLConvert < IsoDoc::Generic::PresentationXMLConvert
      def configuration
        Metanorma::M3AAWG.configuration
      end

      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

6 entries across 6 versions & 1 rubygems

Version Path
metanorma-m3aawg-2.2.5 lib/isodoc/m3aawg/presentation_xml_convert.rb
metanorma-m3aawg-2.2.4 lib/isodoc/m3aawg/presentation_xml_convert.rb
metanorma-m3aawg-2.2.3 lib/isodoc/m3aawg/presentation_xml_convert.rb
metanorma-m3aawg-2.2.2 lib/isodoc/m3aawg/presentation_xml_convert.rb
metanorma-m3aawg-2.2.1 lib/isodoc/m3aawg/presentation_xml_convert.rb
metanorma-m3aawg-2.2.0 lib/isodoc/m3aawg/presentation_xml_convert.rb