diff options
author | Ralph Amissah <ralph@amissah.com> | 2010-03-17 15:43:23 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2010-03-17 15:43:23 -0400 |
commit | 3a05470820f9bc3a88eeb6eb97599a8eb895f325 (patch) | |
tree | cba8ea1ed592d7a3fb3c6199035d2caf6d985ce5 /lib/sisu/v2/epub_segments.rb | |
parent | debian: NEWS.Debian, changelog, control, sisu.install, sisu.lintian-overrides... (diff) | |
parent | plaintext docoration (more flexible markings) (diff) |
Merge branch 'upstream' into debian/sid
Diffstat (limited to 'lib/sisu/v2/epub_segments.rb')
-rw-r--r-- | lib/sisu/v2/epub_segments.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/sisu/v2/epub_segments.rb b/lib/sisu/v2/epub_segments.rb index 3f402c92..5f0b74d3 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 '' @@ -376,7 +379,7 @@ WOK end elsif dob.is =~/^(?:group|alt)$/ sto.para #fix this should be group type specific #FIX - elsif dob.is =~/^verse$/ + elsif dob.is=='verse' sto.verse elsif dob.is=='code' sto.code |