From c25fc2751886278a4e7f30f127e80449160a47f1 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Tue, 25 Jun 2013 00:07:44 -0400 Subject: v4: general code cleaning, sync with v5 --- lib/sisu/v4/xhtml.rb | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'lib/sisu/v4/xhtml.rb') diff --git a/lib/sisu/v4/xhtml.rb b/lib/sisu/v4/xhtml.rb index c6dca8fb..a62c942f 100644 --- a/lib/sisu/v4/xhtml.rb +++ b/lib/sisu/v4/xhtml.rb @@ -84,8 +84,6 @@ module SiSU_XHTML begin @env,@md,@dal_array=@particulars.env,@particulars.md,@particulars.dal_array unless @opt.cmd =~/q/ - path=@env.path.output_tell - loc=@env.url.output_tell tool=if @opt.cmd =~/[MV]/ "#{@env.program.web_browser} file://#{@md.file.output_path.xhtml.dir}/#{@md.file.base_filename.xhtml}" elsif @opt.cmd =~/v/ @@ -196,7 +194,7 @@ WOK if defined? dob.tags \ and dob.tags.length > 0 # insert tags "hypertargets" dob.tags.each do |t| - tags=tags +%{} + tags=tags << %{} end end tags @@ -207,8 +205,7 @@ WOK named=name_tags(dob) if dob.is==:heading lv=dob.ln - n=dob.ln - 1 - n3=dob.ln + 2 + dob.ln + 2 else lv=nil end extract_endnotes(dob) @@ -367,7 +364,6 @@ WOK end def pre rdf=SiSU_XML_Tags::RDF.new(@md) - dir=SiSU_Env::InfoEnv.new @@xml[:head],@@xml[:body]=[],[] stylesheet=SiSU_Style::CSS_HeadInfo.new(@md,'xhtml').stylesheet encoding=(@sys.locale =~/utf-?8/i) ? '' : '' -- cgit v1.2.3