Sha256: 858a546c7027dd07cca91d15bd0ff18a061680b476834f3ab9d3de6000567329

Contents?: true

Size: 437 Bytes

Versions: 23

Compression:

Stored size: 437 Bytes

Contents

require_relative "init"
require_relative "metadata"
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

23 entries across 23 versions & 1 rubygems

Version Path
metanorma-generic-2.0.4 lib/isodoc/generic/presentation_xml_convert.rb
metanorma-generic-2.0.3 lib/isodoc/generic/presentation_xml_convert.rb
metanorma-generic-2.0.2 lib/isodoc/generic/presentation_xml_convert.rb
metanorma-generic-2.0.1 lib/isodoc/generic/presentation_xml_convert.rb
metanorma-generic-2.0.0 lib/isodoc/generic/presentation_xml_convert.rb
metanorma-generic-1.11.3 lib/isodoc/generic/presentation_xml_convert.rb
metanorma-generic-1.11.2 lib/isodoc/generic/presentation_xml_convert.rb
metanorma-generic-1.11.1 lib/isodoc/generic/presentation_xml_convert.rb
metanorma-generic-1.11.0 lib/isodoc/generic/presentation_xml_convert.rb
metanorma-generic-1.10.4 lib/isodoc/generic/presentation_xml_convert.rb
metanorma-generic-1.10.3 lib/isodoc/generic/presentation_xml_convert.rb
metanorma-generic-1.10.2 lib/isodoc/generic/presentation_xml_convert.rb
metanorma-generic-1.10.1 lib/isodoc/generic/presentation_xml_convert.rb
metanorma-generic-1.10.0 lib/isodoc/generic/presentation_xml_convert.rb
metanorma-generic-1.9.0 lib/isodoc/generic/presentation_xml_convert.rb
metanorma-generic-1.8.2 lib/isodoc/generic/presentation_xml_convert.rb
metanorma-generic-1.8.1 lib/isodoc/generic/presentation_xml_convert.rb
metanorma-generic-1.8.0 lib/isodoc/generic/presentation_xml_convert.rb
metanorma-generic-1.7.3 lib/isodoc/generic/presentation_xml_convert.rb
metanorma-generic-1.7.2 lib/isodoc/generic/presentation_xml_convert.rb