Sha256: 517678a4c47215537f255b9b8ac759b5b02218df3735420a0e94102f2f7fcb21
Contents?: true
Size: 993 Bytes
Versions: 3
Compression:
Stored size: 993 Bytes
Contents
module IsoDoc module Ribose module BaseConvert def metadata_init(lang, script, labels) @meta = Metadata.new(lang, script, labels) end def xref_init(lang, script, klass, labels, options) @xrefs = Xref.new(lang, script, klass, labels, options) end def annex_name(annex, name, div) div.h1 **{ class: "Annex" } do |t| t << "#{@xrefs.anchor(annex['id'], :label)}<br/><br/>" name&.children&.each { |c2| parse(c2, t) } end end 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 clausedelim "" end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
metanorma-ribose-1.5.3 | lib/isodoc/ribose/base_convert.rb |
metanorma-ribose-1.5.2 | lib/isodoc/ribose/base_convert.rb |
metanorma-ribose-1.5.0 | lib/isodoc/ribose/base_convert.rb |