diff options
author | Ralph Amissah <ralph@amissah.com> | 2011-09-05 10:36:28 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2011-09-05 10:41:45 -0400 |
commit | 7bc559f85cb0b6c6f4cdfe127a386573b4c5d8ce (patch) | |
tree | 4d7832a654779710edbf304437be8ee8ab0e6dc7 /lib/sisu/v3/epub_format.rb | |
parent | v3: 3.0.17 version & changelog "opened" (diff) |
v3: unix conditional tests (? :) remove line break markers before : cosmetic
Diffstat (limited to 'lib/sisu/v3/epub_format.rb')
-rw-r--r-- | lib/sisu/v3/epub_format.rb | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/lib/sisu/v3/epub_format.rb b/lib/sisu/v3/epub_format.rb index 1de067e4..345bee95 100644 --- a/lib/sisu/v3/epub_format.rb +++ b/lib/sisu/v3/epub_format.rb @@ -1419,7 +1419,7 @@ WOK end def navmap_sisu_toc(no) id_u=DISABLE[:epub][:ncx_navpoint_unique_id] \ - ? '' \ + ? '' : "-#{no}" <<WOK <navPoint id="navpoint#{id_u}" playOrder="#{no}"> @@ -1433,7 +1433,7 @@ WOK def navpoint(dob,no,name=nil) name=name ? name : dob.name id_u=DISABLE[:epub][:ncx_navpoint_unique_id] \ - ? '' \ + ? '' : "-#{no}" <<WOK <navPoint id="navpoint#{id_u}" playOrder="#{no}"> @@ -1485,13 +1485,13 @@ WOK m='' @md.creator.author_detail.each do |x| surname=x[:the] \ - ? x[:the] \ + ? x[:the] : '' other_names=x[:others] \ - ? ', ' + x[:others] \ + ? ', ' + x[:others] : '' m=(m.empty?) \ - ? (surname + other_names) \ + ? (surname + other_names) : (m + '; ' + surname + ', ' + other_names) m.gsub!(/</,'<'); m.gsub!(/>/,'>') m.gsub!(/<br(?: \/)?>/,';') @@ -1507,13 +1507,13 @@ WOK m='' @md.creator.editor_detail.each do |x| surname=x[:the] \ - ? x[:the] \ + ? x[:the] : '' other_names=x[:others] \ - ? ', ' + x[:others] \ + ? ', ' + x[:others] : '' m=(m.empty?) \ - ? (surname + other_names) \ + ? (surname + other_names) : (m + '; ' + surname + ', ' + other_names) m.gsub!(/</,'<'); m.gsub!(/>/,'>') m.gsub!(/<br(?: \/)?>/,';') @@ -1529,13 +1529,13 @@ WOK m='' @md.creator.translator_detail.each do |x| surname=x[:the] \ - ? x[:the] \ + ? x[:the] : '' other_names=x[:others] \ - ? ', ' + x[:others] \ + ? ', ' + x[:others] : '' m=(m.empty?) \ - ? (surname + other_names) \ + ? (surname + other_names) : (m + '; ' + surname + ', ' + other_names) m.gsub!(/</,'<'); m.gsub!(/>/,'>') m.gsub!(/<br(?: \/)?>/,';') @@ -1551,13 +1551,13 @@ WOK m='' @md.creator.illustrator_detail.each do |x| surname=x[:the] \ - ? x[:the] \ + ? x[:the] : '' other_names=x[:others] \ - ? ', ' + x[:others] \ + ? ', ' + x[:others] : '' m=(m.empty?) \ - ? (surname + other_names) \ + ? (surname + other_names) : (m + '; ' + surname + ', ' + other_names) m.gsub!(/</,'<'); m.gsub!(/>/,'>') m.gsub!(/<br(?: \/)?>/,';') @@ -1767,7 +1767,7 @@ WOK #{@vz.epub_png_nav_nxt} </a>} if @md.firstseg =~/\S+/ DISABLE[:epub][:internal_navigation] \ - ? '' \ + ? '' : %{<p class="align_right">#{firstseg}</p>} end def seg_head_navigation_band_bottom @@ -1775,7 +1775,7 @@ WOK #{@vz.epub_png_nav_nxt} </a>} if @md.firstseg =~/\S+/ DISABLE[:epub][:internal_navigation] \ - ? '' \ + ? '' : %{<p class="align_right">#{firstseg}</p>} end def manifest_link(text) #watch fix removed font size 2 @@ -1954,7 +1954,7 @@ WOK </a> } if f_nxt==true DISABLE[:epub][:internal_navigation] \ - ? '' \ + ? '' : %{<p class="align_right"> #{pre} #{toc} @@ -2282,17 +2282,17 @@ WOK end def title_heading1 id_u=DISABLE[:epub][:per_section_title] \ - ? '' \ + ? '' : title_heading('h1','tiny') end def title_heading2 id_u=DISABLE[:epub][:per_section_title] \ - ? '' \ + ? '' : title_heading('h2','tiny') end def title_heading3 id_u=DISABLE[:epub][:per_section_title] \ - ? '' \ + ? '' : title_heading('h3','tiny') end def title_heading4 |