lib/isodoc/iso/word_cleanup.rb in metanorma-iso-2.1.1 vs lib/isodoc/iso/word_cleanup.rb in metanorma-iso-2.1.2
- old
+ new
@@ -42,9 +42,12 @@
def style_cleanup1(docxml)
docxml.xpath("//*[@class = 'example']").each do |p|
p["class"] = "Example"
end
+ docxml.xpath("//*[@class = 'zzHelp']/p[not(@class)]").each do |p|
+ p["class"] = "zzHelp"
+ end
end
def authority_hdr_cleanup(docxml)
docxml&.xpath("//div[@class = 'boilerplate-license']")&.each do |d|
d.xpath(".//h1").each do |p|