Sha256: e6134bf37c1ec7f6c7e218697e034079396ceacae42c9ece962b6a5fbc03cf9c

Contents?: true

Size: 402 Bytes

Versions: 7

Compression:

Stored size: 402 Bytes

Contents

require_relative "init"
require "isodoc"

module IsoDoc
  module MPFA
    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, " ", lbl, "title")
      end

      include Init
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
metanorma-mpfa-0.5.6 lib/isodoc/mpfa/presentation_xml_convert.rb
metanorma-mpfa-0.5.5 lib/isodoc/mpfa/presentation_xml_convert.rb
metanorma-mpfa-0.5.4 lib/isodoc/mpfa/presentation_xml_convert.rb
metanorma-mpfa-0.5.3 lib/isodoc/mpfa/presentation_xml_convert.rb
metanorma-mpfa-0.5.2 lib/isodoc/mpfa/presentation_xml_convert.rb
metanorma-mpfa-0.5.1 lib/isodoc/mpfa/presentation_xml_convert.rb
metanorma-mpfa-0.5.0 lib/isodoc/mpfa/presentation_xml_convert.rb