Sha256: b2799b36bd09d542333fe47ba36336cd44f4261973432d505347736957fce4ba

Contents?: true

Size: 633 Bytes

Versions: 45

Compression:

Stored size: 633 Bytes

Contents

module IsoDoc
  module Ribose
    module BaseConvert
      def executivesummary(docxml, out)
        f = docxml.at(ns("//executivesummary")) || return
        title_attr = { class: "IntroTitle" }
        page_break(out)
        out.div **{ class: "Section3", id: f["id"] } do |div|
          clause_name(nil, f&.at(ns("./title")), div, title_attr)
          f.elements.each do |e|
            parse(e, div) unless e.name == "title"
          end
        end
      end

      def is_clause?(name)
        return true if name == "executivesummary"

        super
      end

      def clausedelim
        ""
      end
    end
  end
end

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
metanorma-ribose-1.7.8 lib/isodoc/ribose/base_convert.rb
metanorma-ribose-1.7.7 lib/isodoc/ribose/base_convert.rb
metanorma-ribose-1.7.6 lib/isodoc/ribose/base_convert.rb
metanorma-ribose-1.7.5 lib/isodoc/ribose/base_convert.rb
metanorma-ribose-1.7.4 lib/isodoc/ribose/base_convert.rb