diff options
author | Ralph Amissah <ralph@amissah.com> | 2011-05-23 21:56:12 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2011-05-23 21:57:42 -0400 |
commit | 154fd687b4b16eedbe1bf774b9ecdeab84c9694b (patch) | |
tree | d6af5f9982944dd9f83902c59f40ee8aa61eb336 /lib | |
parent | v3: texpdf, filenames (diff) |
v3: html, close files; syslink index.html to toc.html
* syslink will need revisit (will only "work" properly with by_language dir
structure)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/sisu/v3/html.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/sisu/v3/html.rb b/lib/sisu/v3/html.rb index b569653f..d586c25d 100644 --- a/lib/sisu/v3/html.rb +++ b/lib/sisu/v3/html.rb @@ -628,6 +628,7 @@ WOK end end rescue; SiSU_Errors::Info_error.new($!,$@,@md.opt.cmd,@md.fns).error + ensure; @filename_html_scroll.close end end def segtoc @@ -645,6 +646,18 @@ WOK end end rescue; SiSU_Errors::Info_error.new($!,$@,@md.opt.cmd,@md.fns).error + ensure + @filename_html_segtoc.close + @filename_html_index.close + ## only works properly for directory_structure_by language, fix + unless FileTest.file?("#{@file.output_path.html.dir}/index.html") + pwd_set=Dir.pwd + Dir.chdir(@file.output_path.html.dir) + system(" + ln -s #{@file.base_filename.html_segtoc} index.html + ") + Dir.chdir(pwd_set) + end end end end |