diff options
author | Ralph Amissah <ralph@amissah.com> | 2015-01-07 19:04:46 -0500 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2015-01-07 22:42:40 -0500 |
commit | 881e80ccce53136652b269aa34b6c7cb6ceb34ca (patch) | |
tree | e87f7292914f2b5cf90ebc7fc8b4fd4483cc4289 /lib/sisu/develop/html.rb | |
parent | c&d: small fixes (diff) |
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)
Diffstat (limited to 'lib/sisu/develop/html.rb')
-rw-r--r-- | lib/sisu/develop/html.rb | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/sisu/develop/html.rb b/lib/sisu/develop/html.rb index 737d532e..2386394f 100644 --- a/lib/sisu/develop/html.rb +++ b/lib/sisu/develop/html.rb @@ -261,8 +261,6 @@ module SiSU_HTML @@firstseg=nil def initialize(md=nil,data='') @data,@md=data,md - @ocn_html_identifier= - SiSU_Env::ProcessingSettings.new(@md).ocn_html_identifier @tell=SiSU_Screen::Ansi.new(@md.opt.act[:color_state][:set]) if @md end def songsheet #extracts toc for scroll & seg @@ -377,7 +375,7 @@ WOK title=if dob.ocn ==0 then linkname else @@toc[:scr] << '<br>' - %{<b><a href="##{@ocn_html_identifier}#{dob.ocn}">#{linkname}</a></b>} + %{<b><a href="##{dob.ocn}">#{linkname}</a></b>} end txt_obj={ txt: title } format_toc=SiSU_HTML_Format::FormatToc.new(@md,txt_obj) @@ -419,7 +417,7 @@ WOK end else @@toc[:scr] << '<br>' - %{<b><a href="##{@ocn_html_identifier}#{dob.ocn}">#{linkname}</a></b>} + %{<b><a href="##{dob.ocn}">#{linkname}</a></b>} end txt_obj={ txt: title } format_toc=SiSU_HTML_Format::FormatToc.new(@md,txt_obj) @@ -536,7 +534,7 @@ WOK } f=@md.file.base_filename.html_seg(fnh) p_num=SiSU_HTML_Format::ParagraphNumber.new(@md,ocn) - lnk_n_txt=%{ <a href="#{f}##{@ocn_html_identifier}#{ocn}"> + lnk_n_txt=%{ <a href="#{f}##{ocn}"> #{linkname} </a>} txt_obj={ txt: lnk_n_txt } @@ -561,7 +559,7 @@ WOK } f=@md.file.base_filename.html_seg(fnh) p_num=SiSU_HTML_Format::ParagraphNumber.new(@md,ocn) - lnk_n_txt=%{ <a href="#{f}##{@ocn_html_identifier}#{ocn}"> + lnk_n_txt=%{ <a href="#{f}##{ocn}"> #{linkname} </a>} txt_obj={ txt: lnk_n_txt } |