Skip to content

Commit

Permalink
rspec
Browse files Browse the repository at this point in the history
  • Loading branch information
opoudjis committed Nov 14, 2024
1 parent 5cd1f3b commit 26f7ba2
Show file tree
Hide file tree
Showing 4 changed files with 359 additions and 198 deletions.
2 changes: 0 additions & 2 deletions lib/isodoc/word_function/postprocess_cover.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ def word_cover(docxml)
cover = File.read(@wordcoverpage, encoding: "UTF-8")
cover = populate_template(cover, :word)
coverxml = to_word_xhtml_fragment(cover)
#ins.children.first.previous = coverxml.to_xml(encoding: "US-ASCII")
ins.add_first_child coverxml.to_xml(encoding: "US-ASCII")
end

Expand All @@ -32,7 +31,6 @@ def word_intro(docxml, level)
docxml, level)
intro = populate_template(intro, :word)
introxml = to_word_xhtml_fragment(intro)
#ins.children.first.previous = introxml.to_xml(encoding: "US-ASCII")
ins.add_first_child introxml.to_xml(encoding: "US-ASCII")
end

Expand Down
2 changes: 1 addition & 1 deletion lib/isodoc/word_function/postprocess_table.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def colgroup_widths(table)

def word_nested_tables(docxml)
docxml.xpath("//table").each do |t|
t.xpath(".//table").reverse.each do |tt|
t.xpath(".//table").reverse_each do |tt|
t.next = tt.remove
end
end
Expand Down
Loading

0 comments on commit 26f7ba2

Please sign in to comment.