Sha256: 03dc79bf44b8f42b3789118cecbc37916891ae03b6862c4e3a7c4f118fc7a9f3
Contents?: true
Size: 557 Bytes
Versions: 20
Compression:
Stored size: 557 Bytes
Contents
module Asciidoctor module Unece class Converter < Standoc::Converter def content_validate(doc) super bibdata_validate(doc.root) end def bibdata_validate(doc) stage_validate(doc) end def stage_validate(xmldoc) stage = xmldoc&.at("//bibdata/status/stage")&.text %w(proposal working-draft committee-draft draft-standard final-draft published withdrawn).include? stage or warn "Document Attributes: #{stage} is not a recognised status" end end end end
Version data entries
20 entries across 20 versions & 1 rubygems