Sha256: 2b1c6abd1526222c1b1513bca6b0347f3fca08269184e81dfb17b7af2793a59f
Contents?: true
Size: 458 Bytes
Versions: 10
Compression:
Stored size: 458 Bytes
Contents
# frozen_string_literal: true require 'isodoc' module IsoDoc module Csa module BaseConvert def cleanup(docxml) super term_cleanup(docxml) end def term_cleanup(docxml) docxml.xpath("//p[@class = 'Terms']").each do |d| h2 = d.at("./preceding-sibling::*[@class = 'TermNum'][1]") h2.add_child(" ") h2.add_child(d.remove) end docxml end end end end
Version data entries
10 entries across 10 versions & 2 rubygems