diff options
Diffstat (limited to 'lib/sisu/v3/shared_html_lite.rb')
-rw-r--r-- | lib/sisu/v3/shared_html_lite.rb | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/lib/sisu/v3/shared_html_lite.rb b/lib/sisu/v3/shared_html_lite.rb index 2ac4b01a..fca0cfb8 100644 --- a/lib/sisu/v3/shared_html_lite.rb +++ b/lib/sisu/v3/shared_html_lite.rb @@ -1,4 +1,4 @@ -# coding: utf-8 +# encoding: utf-8 =begin * Name: SiSU @@ -58,11 +58,11 @@ =end module SiSU_Format_Shared - require "#{SiSU_lib}/defaults" # defaults.rb + require_relative 'defaults' # defaults.rb include SiSU_Viz class CSS_Format - require "#{SiSU_lib}/defaults" # defaults.rb - require "#{SiSU_lib}/particulars" # particulars.rb + require_relative 'defaults' # defaults.rb + require_relative 'particulars' # particulars.rb @@fns=nil def initialize(md,t_o) @md,@t_o=md,t_o @@ -204,36 +204,36 @@ GSUB %{<p class="toc#{@lv}" header="#{@hname}"><a href="##{@ocn}">#{@txt}</a></p>\n} #<< "\n" end def lev_toc - h={:txt =>txt,:class =>"toc#{@lv}",:type =>'toc'} + h={ txt: txt, class: "toc#{@lv}", type: 'toc' } tag_para(h) end def lev4_plus txt=markup_object(@t_o) - h={:txt =>txt,:class =>"h#{@lv}",:type =>'substantive',:id =>@ocn,:header =>@hname} + h={ txt: txt, class: "h#{@lv}", type: 'substantive', id: @ocn, header: @hname } tag_header(h) end def lev4_minus txt=markup_object(@t_o) - h={:txt =>txt,:class =>"h#{@t_o.ln}",:type =>'substantive',:id =>@ocn} + h={ txt: txt, class: "h#{@t_o.ln}", type: 'substantive', id: @ocn } tag_para(h) end def norm_comment - h={:txt =>@t_o.obj,:class =>'norm',:type =>'comment'} + h={ txt: @t_o.obj, class: 'norm', type: 'comment' } tag_para(h) end def norm txt=markup_object(@t_o) - h={:txt =>txt,:class =>'norm',:type =>'substantive',:id =>@ocn} + h={ txt: txt, class: 'norm', type: 'substantive', id: @ocn } tag_para(h) end def code txt=markup_object(@t_o) - h={:txt =>"<tt>#{txt}</tt>",:class =>'code',:type =>'substantive',:id =>@ocn} + h={ txt: "<tt>#{txt}</tt>", class: 'code', type: 'substantive', id: @ocn } tag_para(h) end def indent(t) txt=markup_object(@t_o) - h={:txt =>txt,:class =>"indent#{t}",:type =>'substantive',:id =>@ocn} + h={ txt: txt, class: "indent#{t}", type: 'substantive', id: @ocn } tag_para(h) end def para_table |