diff options
author | Ralph Amissah <ralph@amissah.com> | 2014-10-12 10:37:42 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2014-10-12 10:37:42 -0400 |
commit | b99857de428aa6e9182c5e724444bd791afd9dbd (patch) | |
tree | 58e3dfa444895f792009e9254ac28c3c565e6097 /lib/sisu/v6 | |
parent | v5 v6: constants, remove ocn html leader (diff) |
v5 v6: html_format, label, re: object number object names
Diffstat (limited to 'lib/sisu/v6')
-rw-r--r-- | lib/sisu/v6/html_format.rb | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/sisu/v6/html_format.rb b/lib/sisu/v6/html_format.rb index abefdf2f..61fedba1 100644 --- a/lib/sisu/v6/html_format.rb +++ b/lib/sisu/v6/html_format.rb @@ -71,10 +71,11 @@ module SiSU_HTML_Format if @ocn.to_i==0 \ or @ocn.empty? '' + elsif @make.build.html_strict? + %{<label class="ocn">#{@ocn}</label>} else - name=(@make.build.html_strict?) ? '' : %{ name="#{@ocn}"} - @ocn.gsub(/^(\d+|)$/, - %{<label class="ocn" id="#{@ocn}">\\1</label>}) + %{<label class="ocn"><a name="#{@ocn}" class="lnkocn">#{@ocn}</a></label>} + #%{<label class="ocn" id="#{@ocn}">#{@ocn}</label>} end else '' @@ -410,6 +411,7 @@ WOK </tr></table>} end def head + rdf=SiSU_XML_Tags::RDF.new(@md) %{#{doc_type} <head> <meta charset="utf-8"> @@ -417,6 +419,7 @@ WOK #{@md.html_title} </title> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> +#{rdf.metatag_html} #{@stylesheet.css_head} </head> #{@vz.color_body} @@ -809,6 +812,7 @@ WOK } #revisit end def head_seg + rdf=SiSU_XML_Tags::RDF.new(@md) %{#{doc_type} <head> <meta charset="utf-8"> @@ -817,6 +821,7 @@ WOK #{@md.html_title} </title> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"> +#{rdf.metatag_html} #{@stylesheet.css_head_seg} </head> #{@vz.color_body} |