From 881e80ccce53136652b269aa34b6c7cb6ceb34ca Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Wed, 7 Jan 2015 19:04:46 -0500 Subject: c&d: html, ocn link back to self reinstated * requested, used as quick means to get object url reference link * d: removed ocn_html_identifier variable, unnecessary in html5 (requirement previously forced by html4) --- lib/sisu/develop/html_format.rb | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'lib/sisu/develop/html_format.rb') diff --git a/lib/sisu/develop/html_format.rb b/lib/sisu/develop/html_format.rb index 5d7a4a7d..1692e452 100644 --- a/lib/sisu/develop/html_format.rb +++ b/lib/sisu/develop/html_format.rb @@ -60,7 +60,6 @@ module SiSU_HTML_Format def initialize(md,ocn) @md,@ocn=md,ocn.to_s @ocn ||='' - @ocn_html_identifier=SiSU_Env::ProcessingSettings.new(@md).ocn_html_identifier @make=SiSU_Env::ProcessingSettings.new(@md) end def ocn_display @@ -69,7 +68,7 @@ module SiSU_HTML_Format or @ocn.empty? '' else - %{} + %{} end else '' @@ -89,7 +88,7 @@ module SiSU_HTML_Format end def goto (@ocn==nil || @ocn.empty?) \ - ? '' : %{} + ? '' : %{} end end class HeadInformation @@ -1147,7 +1146,6 @@ WOK end def subtoc_lev(tag,attrib) @txt=clean(@txt) - @ocn_html_identifier=SiSU_Env::ProcessingSettings.new(@md).ocn_html_identifier txt=if @txt \ and @txt =~/<\/?i>|/mi @txt.gsub(/<\/?i>|/mi,'') #removes name markers from subtoc, go directly to substantive text @@ -1161,7 +1159,7 @@ WOK gsub(/ \d+<\/sup> /m,'') end %{<#{tag} class="#{attrib}"> - #{txt} #{note} + #{txt} #{note} } end def subtoc_lev5 -- cgit v1.2.3