lib/isodoc/function/to_word_html.rb in isodoc-0.9.0 vs lib/isodoc/function/to_word_html.rb in isodoc-0.9.1
- old
+ new
@@ -18,11 +18,17 @@
dir = "#{filename}_files"
unless debug
Dir.mkdir(dir) unless File.exists?(dir)
system "rm -r #{dir}/*"
end
+ @filename = filename
[filename, dir]
end
+
+ def tmpimagedir
+ @filename + @tmpimagedir
+ end
+
# isodoc.css overrides any CSS injected by Html2Doc, which
# is inserted before this CSS.
def define_head(html, filename, _dir)
html.head do |head|