aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v3dv/epub.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2012-01-23 21:42:25 -0500
committerRalph Amissah <ralph@amissah.com>2012-01-23 21:42:27 -0500
commit21f5e220b738add01c19c2b15a76f2d240b2c0d5 (patch)
tree287dac6e47cab1da0d0567e9dc79683bc8d757b0 /lib/sisu/v3dv/epub.rb
parentv3dv: call most methods by full name (include associated module & class names) (diff)
v3dv: replace use of most ruby exclamation (!) method actionssisu_3.1.12
Diffstat (limited to 'lib/sisu/v3dv/epub.rb')
-rw-r--r--lib/sisu/v3dv/epub.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/sisu/v3dv/epub.rb b/lib/sisu/v3dv/epub.rb
index 259cdbe0..c87112cf 100644
--- a/lib/sisu/v3dv/epub.rb
+++ b/lib/sisu/v3dv/epub.rb
@@ -498,7 +498,7 @@ module SiSU_EPUB
SiSU_Screen::Ansi.new(@md.opt.cmd,'Scroll & Segtoc').txt_grey if @md.opt.cmd =~/[MVv]/
format_head_toc=SiSU_EPUB_Format::HeadToc.new(@md)
dochead=format_head_toc.head
- dochead.gsub!(/toc\.(html)/,'doc.\1') #kludge
+ dochead=dochead.gsub(/toc\.(html)/,'doc.\1') #kludge
toc_shared << dochead #<< ads.div.major
segtoc << format_head_toc.head #<< ads.div.major
if SiSU_EPUB_Format::HeadToc.method_defined? :toc_head_escript
@@ -566,7 +566,7 @@ module SiSU_EPUB
#Segtoc tail added here
segtoc << seg_toc_band_bottom
segtoc << format_head_toc.xhtml_close
- segtoc.flatten!.compact!
+ segtoc=segtoc.flatten.compact #watch
SiSU_EPUB::Source::Output.new(@md,segtoc).segtoc
segtoc=[]
@toc[:scr],@toc[:seg]=[],[]
@@ -666,7 +666,7 @@ module SiSU_EPUB
filename_html_segtoc=@make.epub.xhtml_segtoc
filename_html_index=@make.epub.xhtml_index
@output.each do |para|
- para.strip!
+ para=para.strip
unless para =~/\A\s*\Z/
filename_html_segtoc.puts para,"\n"
filename_html_index.puts para,"\n"