aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v2/epub_segments.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2010-03-10 16:43:15 -0500
committerRalph Amissah <ralph@amissah.com>2010-03-10 16:43:15 -0500
commitc36e976c00bac90fd01fe12f6c9bc632e3b209b7 (patch)
tree832854a045863095e1e8edc3513eed624c547f6c /lib/sisu/v2/epub_segments.rb
parentsha256 for 2.0.0 in other changelog (diff)
epub, html: make robust where missing param values
Diffstat (limited to 'lib/sisu/v2/epub_segments.rb')
-rw-r--r--lib/sisu/v2/epub_segments.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/sisu/v2/epub_segments.rb b/lib/sisu/v2/epub_segments.rb
index 3f402c92..6436612c 100644
--- a/lib/sisu/v2/epub_segments.rb
+++ b/lib/sisu/v2/epub_segments.rb
@@ -300,7 +300,10 @@ WOK
end
@p_num ||= ''
if @@is1==1
- @author=%{<b>#{@md.creator.author}</b>\n} if @md.creator.author.to_s =~/\S/
+ if defined? @md.creator.author \
+ and @md.creator.author
+ @author=%{<b>#{@md.creator.author}</b>\n}
+ end
@@seg[:nav] << format_head_seg.navigation_band(@@segtocband)
ocn=if @@heading1[/.+?#{Mx[:id_o]}~(\d+);(?:[oh]|[0-6]:)\d+;\w\d+#{Mx[:id_c]}#{Mx[:id_o]}#{@dp}:#{@dp}#{Mx[:id_c]}$/]; $1 #fix
else ''