Sha256: e05fba1782bce6c465d1cd933c03c79a85137c7a88aaf0c081b568f5a6e8fc0f

Contents?: true

Size: 409 Bytes

Versions: 4

Compression:

Stored size: 409 Bytes

Contents

require_relative "init"
require "isodoc"

module IsoDoc
  module Generic
    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

4 entries across 4 versions & 2 rubygems

Version Path
metanorma-generic-1.6.2 lib/isodoc/generic/presentation_xml_convert.rb
metanorma-generic-1.6.1 lib/isodoc/generic/presentation_xml_convert.rb
metanorma-cli-1.3.4 gems/ruby/2.6.0/gems/metanorma-generic-1.6.0/lib/isodoc/generic/presentation_xml_convert.rb
metanorma-generic-1.6.0 lib/isodoc/generic/presentation_xml_convert.rb