aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/sisu/v3/html.rb13
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