Sha256: 1262a8ba944396135108988972388d2ae8f462f06548bf1c77a4f49821d5b43a

Contents?: true

Size: 452 Bytes

Versions: 12

Compression:

Stored size: 452 Bytes

Contents

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

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

      include Init
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
metanorma-cc-2.1.13 lib/isodoc/cc/presentation_xml_convert.rb
metanorma-cc-2.1.12 lib/isodoc/cc/presentation_xml_convert.rb
metanorma-cc-2.1.11 lib/isodoc/cc/presentation_xml_convert.rb
metanorma-cc-2.1.10 lib/isodoc/cc/presentation_xml_convert.rb
metanorma-cc-2.1.9 lib/isodoc/cc/presentation_xml_convert.rb
metanorma-cc-2.1.8.1 lib/isodoc/cc/presentation_xml_convert.rb
metanorma-cc-2.1.8 lib/isodoc/cc/presentation_xml_convert.rb
metanorma-cc-2.1.7 lib/isodoc/cc/presentation_xml_convert.rb
metanorma-cc-2.1.6 lib/isodoc/cc/presentation_xml_convert.rb
metanorma-cc-2.1.5 lib/isodoc/cc/presentation_xml_convert.rb
metanorma-cc-2.1.4 lib/isodoc/cc/presentation_xml_convert.rb
metanorma-cc-2.1.3 lib/isodoc/cc/presentation_xml_convert.rb