aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v5/html_segments.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2013-06-22 01:18:03 -0400
committerRalph Amissah <ralph@amissah.com>2013-06-22 01:18:03 -0400
commit6bf6c320b8ad2cb5aa588575565af70b437aa322 (patch)
treeb2c92c4b75de5c9dcbfb6639e56aac38cf545e67 /lib/sisu/v5/html_segments.rb
parentdebian/changelog (4.1.4-1) (diff)
parentv5: general code cleaning (diff)
Merge tag 'sisu_4.1.5' into debian/sid
SiSU 4.1.5
Diffstat (limited to 'lib/sisu/v5/html_segments.rb')
-rw-r--r--lib/sisu/v5/html_segments.rb12
1 files changed, 5 insertions, 7 deletions
diff --git a/lib/sisu/v5/html_segments.rb b/lib/sisu/v5/html_segments.rb
index 9efa2067..54292175 100644
--- a/lib/sisu/v5/html_segments.rb
+++ b/lib/sisu/v5/html_segments.rb
@@ -185,7 +185,7 @@ module SiSU_HTML_Seg
end
protected
def articles(data)
- track,tracking,newfile=0,0,0
+ tracking,newfile=0,0
@@is4=@@is3=@@is2=@@is1=0
printed_endnote_seg='n'
idx_html=nil
@@ -200,7 +200,7 @@ module SiSU_HTML_Seg
|| dob.is == :heading_insert) \
&& dob.ln == 4
@@seg_name << dob.name
- seg_name=dob.name
+ dob.name
end
end
@@seg_name_html=@@seg_name
@@ -257,7 +257,7 @@ module SiSU_HTML_Seg
if not (dob.is==:heading \
|| dob.is==:heading_insert) \
&& dob.ln==1
- head1=$_ #; check
+ $_ #; check
end
end
if @@is4==1
@@ -268,8 +268,6 @@ module SiSU_HTML_Seg
|| dob.is==:heading_insert) \
&& dob.ln==4
if tracking != 0
- dirout=SiSU_Env::InfoEnv.new(@md.fns)
- dir_sisu=dirout.path.output
@file=SiSU_Env::FileOp.new(@md)
unless FileTest.directory?(@file.output_path.html_seg.dir)
FileUtils::mkdir_p(@file.output_path.html_seg.dir) if File.writable?("#{@file.output_path.base.dir}/.")
@@ -426,7 +424,7 @@ module SiSU_HTML_Seg
end
def markup(dob)
@debug=[]
- format_head_seg=SiSU_HTML_Format::HeadSeg.new(@md)
+ SiSU_HTML_Format::HeadSeg.new(@md)
if dob.is !=:meta
if dob.is==:heading \
|| dob.is==:heading_insert \
@@ -439,7 +437,7 @@ module SiSU_HTML_Seg
|| dob.is==:para
dob_html=if dob.is==:heading \
|| dob.is==:heading_insert
- x=if dob.ln==4
+ if dob.ln==4
sto.seg_heading4
elsif dob.ln==5
sto.seg_heading5