Sha256: c428127e61f7623028c9bb021b8312435e6c084f44401d7982a68a4edd9e33c9

Contents?: true

Size: 821 Bytes

Versions: 5

Compression:

Stored size: 821 Bytes

Contents

require "isodoc"
require "isodoc/generic/word_convert"
require_relative "init"

module IsoDoc
  module Iho
    # A {Converter} implementation that generates Word output, and a document
    # schema encapsulation of the document for validation
    class WordConvert < IsoDoc::Generic::WordConvert
      def make_body1(body, _docxml)
        body.div class: "WordSection1" do |div1|
          div1.p style: "font-size:0pt;" do |p|
            p << "&nbsp;" # placeholder
          end
        end
        section_break(body)
      end

      def authority_cleanup(docxml)
        super
        docxml.xpath("//div[@class = 'boilerplate-feedback']/p").each do |p|
          p["style"] = "font-size:8pt;font-family:Arial;text-align:right"
        end
      end

      include BaseConvert
      include Init
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
metanorma-iho-1.0.12 lib/isodoc/iho/word_convert.rb
metanorma-iho-1.0.10 lib/isodoc/iho/word_convert.rb
metanorma-iho-1.0.9 lib/isodoc/iho/word_convert.rb
metanorma-iho-1.0.8 lib/isodoc/iho/word_convert.rb
metanorma-iho-1.0.7 lib/isodoc/iho/word_convert.rb