diff options
author | Ralph Amissah <ralph@amissah.com> | 2014-10-12 10:32:54 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2014-10-12 10:32:54 -0400 |
commit | 92b4747c4f5b4f6753587d2db969fe3d2c4ca077 (patch) | |
tree | 3a16427854a1432c1240e04653d764138c4221ba /lib/sisu/v5/html_format.rb | |
parent | v5 v6: moved files: harvest* to html_harvest* (diff) |
v5: html, reduce difference with v6 (removal of some trailing slashes <p> <br>)
Diffstat (limited to 'lib/sisu/v5/html_format.rb')
-rw-r--r-- | lib/sisu/v5/html_format.rb | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/lib/sisu/v5/html_format.rb b/lib/sisu/v5/html_format.rb index c34759cf..e99f1b5f 100644 --- a/lib/sisu/v5/html_format.rb +++ b/lib/sisu/v5/html_format.rb @@ -301,7 +301,7 @@ WOK <td width="20%"> #{@vz.table_close} -<p />} +<p>} else '' end end @@ -324,7 +324,7 @@ WOK #{doc_types} #{up_button} #{@vz.table_close} -<p />} +<p>} else '' end end @@ -354,7 +354,7 @@ WOK <td width="5%" align="right"> #{firstseg} #{@vz.table_close} -<p />} +<p>} else '' end end @@ -422,9 +422,7 @@ WOK #{@stylesheet.css_head} </head> #{@vz.color_body} -<a name="top" id="top"></a> -<a name="up" id="up"></a> -<a name="start" id="start"></a>} +<a name="top" id="top"></a>} end def concordance if @md.concord_make @@ -513,7 +511,7 @@ WOK rights=SiSU_HTML_Tune::CleanHTML.new(@md.rights.all).clean_for_html rights=rights.gsub(/^\s*Copyright\s+\(C\)/,'Copyright <sup>©</sup> ') %{<p class="small_left">Rights: #{rights}</p> -<p />} +<p>} end self end @@ -1021,7 +1019,7 @@ WOK end def heading_normal(tag,attrib) section_break=(tag=~/h[1-5]/) \ - ? '<br /><hr width=90% /><br />' + ? '<br><hr width=90% /><br>' : '' %{#{section_break} <div class="substance"> @@ -1179,13 +1177,13 @@ WOK <center> #{@txt} #{@two} -</a></center><p />} +</a></center><p>} end def navigation_toc_lev1 %{#{@banner.nav_toc}} end def navigation_toc_lev2 #change bold use css - %{<p /> + %{<p> <table summary="navigation segment level 2"> <tr><td width ="20"> </td> @@ -1197,7 +1195,7 @@ WOK #{@vz.table_close}} end def navigation_toc_lev3 #change bold use css - %{<p /> + %{<p> <table summary="navigation segment level 3"> <tr><td width ="20"> </td> |