aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v5/xhtml_epub2.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2014-07-29 19:29:33 -0400
committerRalph Amissah <ralph@amissah.com>2014-07-29 19:29:35 -0400
commita79f98621cca3304c06ab3312603b3314bfe773f (patch)
tree45a3d2aec9b300723004dd80235029b79cb568c5 /lib/sisu/v5/xhtml_epub2.rb
parentv5 v6: options, minor fixes (diff)
v5 v6: ensure reset of parsed document directory pathsisu_5.5.5
* needed in the case of html for some subsequent processing
Diffstat (limited to 'lib/sisu/v5/xhtml_epub2.rb')
-rw-r--r--lib/sisu/v5/xhtml_epub2.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/sisu/v5/xhtml_epub2.rb b/lib/sisu/v5/xhtml_epub2.rb
index 5f43a9d1..d0b4a7dc 100644
--- a/lib/sisu/v5/xhtml_epub2.rb
+++ b/lib/sisu/v5/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