Sha256: 55227cb6ec67292781ab2ffd1a710d06e9e7dcf20fd5918eb0c5b7ba7218fcc7

Contents?: true

Size: 453 Bytes

Versions: 3

Compression:

Stored size: 453 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>#{to_xml(t.children)}</strong>"
        end
        prefix_name(elem, "<br/>", lbl, "title")
      end

      include Init
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
metanorma-cc-2.5.6 lib/isodoc/cc/presentation_xml_convert.rb
metanorma-cc-2.5.5 lib/isodoc/cc/presentation_xml_convert.rb
metanorma-cc-2.5.4 lib/isodoc/cc/presentation_xml_convert.rb