aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v3dv/html.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2012-02-03 20:41:32 -0500
committerRalph Amissah <ralph@amissah.com>2012-02-03 20:41:36 -0500
commit7e3cee576368c095fe491014bd279eb280c598ba (patch)
treed8b198e2e09066bcaffc5a93a5a4c434a954c6bf /lib/sisu/v3dv/html.rb
parentv3 v3dv: path & url links, updates for multiple output directory structures (diff)
v3dv, dal +, use symbols to identify document objects type (is) and group (of)sisu_3.1.13
* (dal & code affected as a result)
Diffstat (limited to 'lib/sisu/v3dv/html.rb')
-rw-r--r--lib/sisu/v3dv/html.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/sisu/v3dv/html.rb b/lib/sisu/v3dv/html.rb
index 5141c14b..ec7b0573 100644
--- a/lib/sisu/v3dv/html.rb
+++ b/lib/sisu/v3dv/html.rb
@@ -195,7 +195,7 @@ module SiSU_HTML
format_head_scroll=SiSU_HTML_Format::HeadScroll.new(@md)
@data.each do |dob|
pg=dob.dup
- unless pg.is =~/^code/
+ unless pg.is ==:code
if pg.obj =~/(?:#{Mx[:en_a_o]}|#{Mx[:en_b_o]})[\d*+]+ /
endnote_array=[]
if pg.obj=~/#{Mx[:en_a_o]}[\d*+].+?#{Mx[:en_a_c]}/m
@@ -233,11 +233,11 @@ module SiSU_HTML
@@firstseg=nil
@@toc={ seg: [], seg_mini: [], scr: [] }
@data.each do |dob|
- if dob.is=='heading' \
- or dob.is=='heading_insert'
+ if dob.is==:heading \
+ || dob.is==:heading_insert
dob_toc=dob.dup
- toc=if dob_toc.is =='heading' \
- or dob.is=='heading_insert'
+ toc=if dob_toc.is ==:heading \
+ || dob.is==:heading_insert
toc=case dob_toc.ln
when 1; SiSU_HTML::Source::Toc.new(@md,dob_toc).level_1
when 2; SiSU_HTML::Source::Toc.new(@md,dob_toc).level_2