Sha256: 9ae134fb8f0fc30d4d048f92d1fb629d6b00b2653ab57797c890a3159ea6115e

Contents?: true

Size: 404 Bytes

Versions: 8

Compression:

Stored size: 404 Bytes

Contents

require_relative "init"
require "isodoc"

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

      include Init
    end
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
metanorma-cc-1.5.6 lib/isodoc/cc/presentation_xml_convert.rb
metanorma-cc-1.5.5 lib/isodoc/cc/presentation_xml_convert.rb
metanorma-cc-1.5.4 lib/isodoc/cc/presentation_xml_convert.rb
metanorma-cc-1.5.3 lib/isodoc/cc/presentation_xml_convert.rb
metanorma-cc-1.5.2 lib/isodoc/cc/presentation_xml_convert.rb
metanorma-cc-1.5.1 lib/isodoc/cc/presentation_xml_convert.rb
metanorma-cli-1.3.4 gems/ruby/2.6.0/gems/metanorma-cc-1.5.0/lib/isodoc/cc/presentation_xml_convert.rb
metanorma-cc-1.5.0 lib/isodoc/cc/presentation_xml_convert.rb