lib/isodoc/function/to_word_html.rb in isodoc-1.0.15 vs lib/isodoc/function/to_word_html.rb in isodoc-1.0.16
- old
+ new
@@ -41,11 +41,10 @@
# isodoc.css overrides any CSS injected by Html2Doc, which
# is inserted before this CSS.
def define_head(head, filename, _dir)
if @standardstylesheet
head.style do |style|
- #stylesheet = File.read(@standardstylesheet, encoding: "utf-8").
@standardstylesheet.open
stylesheet = @standardstylesheet.read.
gsub("FILENAME", File.basename(filename))
style.comment "\n#{stylesheet}\n"
end
@@ -148,10 +147,10 @@
when "keyword" then keyword_parse(node, out)
when "smallcap" then smallcap_parse(node, out)
when "br" then br_parse(node, out)
when "hr" then hr_parse(node, out)
when "bookmark" then bookmark_parse(node, out)
- when "pagebreak" then page_break(out)
+ when "pagebreak" then pagebreak_parse(node, out)
when "callout" then callout_parse(node, out)
when "stem" then stem_parse(node, out)
when "clause" then clause_parse(node, out)
when "xref" then xref_parse(node, out)
when "eref" then eref_parse(node, out)