Sha256: 92e875ec19ba93620440b7e5e01faa2e111127e0dd9a6d8b9a3c31b762e16c36
Contents?: true
Size: 564 Bytes
Versions: 14
Compression:
Stored size: 564 Bytes
Contents
module Asciidoctor module UN 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 @log.add("Document Attributes", nil, "#{stage} is not a recognised status") end end end end
Version data entries
14 entries across 14 versions & 2 rubygems