From f17c8b940681250dacd0154033525658ad5c0a08 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Mon, 30 Jul 2007 13:43:37 +0100 Subject: replace unintended tabs with spaces --- lib/sisu/v0/hub.rb | 4 ++-- lib/sisu/v0/odf.rb | 2 +- lib/sisu/v0/param.rb | 2 +- lib/sisu/v0/plaintext.rb | 2 +- lib/sisu/v0/sst_do_inline_footnotes.rb | 2 +- lib/sisu/v0/sst_to_s_xml_dom.rb | 2 +- lib/sisu/v0/sst_to_s_xml_node.rb | 2 +- lib/sisu/v0/sst_to_s_xml_sax.rb | 2 +- lib/sisu/v0/sysenv.rb | 12 ++++++------ lib/sisu/v0/texinfo.rb | 2 +- lib/sisu/v0/wikispeak.rb | 2 +- lib/sisu/v0/xhtml.rb | 2 +- lib/sisu/v0/xml.rb | 2 +- lib/sisu/v0/xml_dom.rb | 2 +- 14 files changed, 20 insertions(+), 20 deletions(-) (limited to 'lib') diff --git a/lib/sisu/v0/hub.rb b/lib/sisu/v0/hub.rb index 9f4be964..d1396331 100644 --- a/lib/sisu/v0/hub.rb +++ b/lib/sisu/v0/hub.rb @@ -233,7 +233,7 @@ p "here #{__FILE__} #{__LINE__}" if @opt =~/M/ end def termsheet # -t system("sisu_termsheet #{@opt.cmd} #{@opt.fns}\n") - @@n_do=@@n_do+1 + @@n_do=@@n_do+1 tell=SiSU_Screen::Ansi.new(@opt.cmd,@@n_do,'Termsheet(s) processed') tell.term_sheet_title unless @opt.cmd =~/q/ end @@ -242,7 +242,7 @@ p "here #{__FILE__} #{__LINE__}" if @opt =~/M/ prt=if prt !~/\d+/; 'webrick default (sysenv)' else "webrick port set to #{prt}" end - puts %{#{@cX.blue}<<#{@cX.off}#{@cX.green}Start Webrick web server on port: #{prt}#{@cX.off}#{@cX.blue}>> #{@cX.off*2} } + puts %{#{@cX.blue}<<#{@cX.off}#{@cX.green}Start Webrick web server on port: #{prt}#{@cX.off}#{@cX.blue}>> #{@cX.off*2} } system("sisu_webrick #{port}&\n") end def semantics diff --git a/lib/sisu/v0/odf.rb b/lib/sisu/v0/odf.rb index 6025dfb2..381e23d4 100644 --- a/lib/sisu/v0/odf.rb +++ b/lib/sisu/v0/odf.rb @@ -507,7 +507,7 @@ module SiSU_ODF if para =~/^0~(\S+)\s+(.+?)\Z/m # for headers d_meta=SiSU_text_utils::Header_scan.new(@md,para).meta if d_meta; odf_metadata(d_meta) - end + end end @rcdc=true if @rcdc==false and (para =~/~metadata/ or para =~/1~\s+Document Information/) if para !~/(^0~||)/ diff --git a/lib/sisu/v0/param.rb b/lib/sisu/v0/param.rb index 2264c48a..211516ad 100644 --- a/lib/sisu/v0/param.rb +++ b/lib/sisu/v0/param.rb @@ -240,7 +240,7 @@ module SiSU_Param if para !~/^\%+\s/ and para =~/|)/ if para =~@regx #/.+?<~\d+;\w\d+;\w\d+>.*/ #watch change diff --git a/lib/sisu/v0/sst_do_inline_footnotes.rb b/lib/sisu/v0/sst_do_inline_footnotes.rb index cf94300b..3a6282c4 100644 --- a/lib/sisu/v0/sst_do_inline_footnotes.rb +++ b/lib/sisu/v0/sst_do_inline_footnotes.rb @@ -272,7 +272,7 @@ module SiSU_Convert_footnotes para.gsub!(/^7~/,'4~') para.gsub!(/^8~/,'5~') para.gsub!(/^9~/,'6~') - end + end if para =~/<:insert\d+!?>/ and para !~/^%\s+/ @skin.select #require "#{@md.doc_skin}" #FIX now diff --git a/lib/sisu/v0/sst_to_s_xml_dom.rb b/lib/sisu/v0/sst_to_s_xml_dom.rb index 4d5bd0fe..84f72037 100644 --- a/lib/sisu/v0/sst_to_s_xml_dom.rb +++ b/lib/sisu/v0/sst_to_s_xml_dom.rb @@ -354,7 +354,7 @@ WOK if para =~/\A(?:@|0~)(\S+?):?\s+(.+?)\Z/m d_meta=SiSU_text_utils::Header_scan.new(@md,para).meta if d_meta; xml_head(d_meta) - end + end end @rcdc=true if @rcdc==false and (para =~/~metadata/ or para =~/^1~\s+Document Information/) if para !~/(^0~|^@\S+?:||)/ diff --git a/lib/sisu/v0/sst_to_s_xml_node.rb b/lib/sisu/v0/sst_to_s_xml_node.rb index 8b9c1f12..8ed1b51b 100644 --- a/lib/sisu/v0/sst_to_s_xml_node.rb +++ b/lib/sisu/v0/sst_to_s_xml_node.rb @@ -411,7 +411,7 @@ WOK if para =~/\A(?:@|0~)(\S+?):?\s+(.+?)\Z/m # for headers d_meta=SiSU_text_utils::Header_scan.new(@md,para).meta if d_meta; xml_head(d_meta) - end + end end end end diff --git a/lib/sisu/v0/sst_to_s_xml_sax.rb b/lib/sisu/v0/sst_to_s_xml_sax.rb index 42e13e08..5a232455 100644 --- a/lib/sisu/v0/sst_to_s_xml_sax.rb +++ b/lib/sisu/v0/sst_to_s_xml_sax.rb @@ -263,7 +263,7 @@ WOK if para =~/\A(?:@|0~)(\S+?):?\s+(.+?)\Z/m # for headers d_meta=SiSU_text_utils::Header_scan.new(@md,para).meta if d_meta; xml_head(d_meta) - end + end end @rcdc=true if @rcdc==false and (para =~/~metadata/ or para =~/^1~\s+Document Information/) if para !~/(^0~|^@\S+?:|^\s*$||)/ diff --git a/lib/sisu/v0/sysenv.rb b/lib/sisu/v0/sysenv.rb index 91e03459..10ec5e33 100644 --- a/lib/sisu/v0/sysenv.rb +++ b/lib/sisu/v0/sysenv.rb @@ -1328,13 +1328,13 @@ module SiSU_Env "#{http}#{@rc['webserv_cgi']['host']}:#{webserv_port_cgi}/#@stub_pwd" else "#{http}#{@rc['webserv_cgi']['host']}/#@stub_pwd" end - else + else http=webserv_host_base=~/http:\/\// ? '' : 'http://' if webserv_port_cgi "#{http}#{webserv_host_base}:#{webserv_port_cgi}/#@stub_pwd" else "#{http}#{webserv_host_base}/#@stub_pwd" end - end + end end def webserv_base_cgi #web url for local webserv (localhost, or hostname) if defined? @rc['webserv_cgi']['host'] and not @rc['webserv_cgi']['host'].nil? @@ -1343,13 +1343,13 @@ module SiSU_Env "#{http}#{@rc['webserv_cgi']['host']}:#{webserv_port_cgi}" else "#{http}#{@rc['webserv_cgi']['host']}" end - else + else http=webserv_host_base=~/http:\/\// ? '' : 'http://' if webserv_port_cgi "#{http}#{webserv_host_base}:#{webserv_port_cgi}" else "#{http}#{webserv_host_base}" end - end + end end def webrick #must have a port #REMOVE #port=":#{webserv_port_cgi}" @@ -1362,7 +1362,7 @@ module SiSU_Env elsif webserv_host_base and not webserv_host_base.nil? "#{http}#{webserv_host_base}" else "#{http}localhost" - end + end end def webserv #web url for local webserv (localhost, or hostname) if path.webserv_dir and path.webserv =~ /#{path.webserv_dir}/ #revisit @@ -2451,7 +2451,7 @@ module SiSU_Env end end filename_homepage=File.new("#{@env.path.webserv}/#{@env.path.stub_pwd}/index.html",'w') - filename_homepage_toc=File.new("#{@env.path.webserv}/#{@env.path.stub_pwd}/toc.html",'w') + filename_homepage_toc=File.new("#{@env.path.webserv}/#{@env.path.stub_pwd}/toc.html",'w') filename_homepage << @vz_home.index filename_homepage_toc << @vz_home.index end diff --git a/lib/sisu/v0/texinfo.rb b/lib/sisu/v0/texinfo.rb index 88f91d7d..c46f81ba 100644 --- a/lib/sisu/v0/texinfo.rb +++ b/lib/sisu/v0/texinfo.rb @@ -402,7 +402,7 @@ module SiSU_TexInfo if @md.fns =~/\.[_-]?sst$/ m=/(.+?)\.([_-]?sst)$/.match(@md.fns) fnb,sfx=m[1],m[2] - pwd=Dir.pwd + pwd=Dir.pwd case sfx when /[_-]?sst$/ @env=SiSU_Env::Info_env.new(@md.fns,@md.cmd) diff --git a/lib/sisu/v0/wikispeak.rb b/lib/sisu/v0/wikispeak.rb index b8ad1267..bcc2da04 100644 --- a/lib/sisu/v0/wikispeak.rb +++ b/lib/sisu/v0/wikispeak.rb @@ -263,7 +263,7 @@ WOK if para =~/^0~(\S+)\s+(.+?)\Z/m # for headers d_meta=SiSU_text_utils::Header_scan.new(@md,para).meta if d_meta; wiki_metadata(d_meta) - end + end end if para !~/(^0~||)/ if para =~@regx #/.+?<~\d+;\w\d+;\w\d+>.*/ #watch change diff --git a/lib/sisu/v0/xhtml.rb b/lib/sisu/v0/xhtml.rb index 40d8ade2..20fa702a 100644 --- a/lib/sisu/v0/xhtml.rb +++ b/lib/sisu/v0/xhtml.rb @@ -287,7 +287,7 @@ WOK if para =~/^0~(\S+)\s+(.+?)$/ # for headers d_meta=SiSU_text_utils::Header_scan.new(@md,para).meta if d_meta; xml_head(d_meta) - end + end end @rcdc=true if @rcdc==false and (para =~/~metadata/ or para =~/1~\s+Document Information/) if para !~/(^0~||)/ diff --git a/lib/sisu/v0/xml.rb b/lib/sisu/v0/xml.rb index 86dfd3cd..d9070dc1 100644 --- a/lib/sisu/v0/xml.rb +++ b/lib/sisu/v0/xml.rb @@ -311,7 +311,7 @@ WOK if para =~/^0~(\S+)\s+(.+?)$/ # for headers d_meta=SiSU_text_utils::Header_scan.new(@md,para).meta if d_meta; xml_head(d_meta) - end + end end @rcdc=true if @rcdc==false and (para =~/~metadata/ or para =~/1~\s+Document Information/) if para !~/(^0~||)/ diff --git a/lib/sisu/v0/xml_dom.rb b/lib/sisu/v0/xml_dom.rb index dd995dcf..82d882e0 100644 --- a/lib/sisu/v0/xml_dom.rb +++ b/lib/sisu/v0/xml_dom.rb @@ -336,7 +336,7 @@ WOK if para =~/^0~(\S+)\s+(.+?)$/ # for headers d_meta=SiSU_text_utils::Header_scan.new(@md,para).meta if d_meta; xml_head(d_meta) - end + end end @rcdc=true if @rcdc==false and (para =~/~metadata/ or para =~/1~\s+Document Information/) if para !~/(^0~||)/ -- cgit v1.2.3