From a79f98621cca3304c06ab3312603b3314bfe773f Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Tue, 29 Jul 2014 19:29:33 -0400 Subject: v5 v6: ensure reset of parsed document directory path * needed in the case of html for some subsequent processing --- lib/sisu/v6/xhtml_epub2.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/sisu/v6/xhtml_epub2.rb') diff --git a/lib/sisu/v6/xhtml_epub2.rb b/lib/sisu/v6/xhtml_epub2.rb index 62cd9caa..e978c15d 100644 --- a/lib/sisu/v6/xhtml_epub2.rb +++ b/lib/sisu/v6/xhtml_epub2.rb @@ -84,7 +84,11 @@ module SiSU_XHTML_EPUB2 @particulars=SiSU_Particulars::CombinedSingleton.instance.get_all(opt) end def read - songsheet + begin + songsheet + ensure + Dir.chdir(@opt.f_pth[:pth]) + end end def songsheet begin -- cgit v1.2.3