aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2010-07-06 14:34:40 -0400
committerRalph Amissah <ralph@amissah.com>2010-07-06 14:34:40 -0400
commit267ba4e0cc8416450b24ba871435dda9ad96fee7 (patch)
tree57580ac05e9ac81a485774bd435effd20143ab39
parenttexpdf_format, output special characters, special circumstance fix (diff)
urls, output info -t produces plaintext output
-rw-r--r--lib/sisu/v2/urls.rb9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/sisu/v2/urls.rb b/lib/sisu/v2/urls.rb
index 56b93a78..1011eda4 100644
--- a/lib/sisu/v2/urls.rb
+++ b/lib/sisu/v2/urls.rb
@@ -114,6 +114,7 @@ module SiSU_urls
'P (Ruby profiler)'=>'profile',
's (sisu markup)'=>source,
'S (sisupod)'=>@fn[:sisupod],
+ 't (Plain-text (endnotes))'=>@fn[:plain],
'x (XML sax type)'=>@fn[:sax],
'X (XML dom type)'=>@fn[:dom],
'y (Manifest, html)'=>@fn[:manifest],
@@ -129,8 +130,8 @@ module SiSU_urls
end
end
def urls_maintenance(opt,x,y)
- if x=~/^([abcehHmNopwxXy])/ \
- and opt.cmd =~/[abcehHmNopwxXy]/ \
+ if x=~/^([abcehHmNoptwxXy])/ \
+ and opt.cmd =~/[abcehHmNoptwxXy]/ \
and x=~/^[#{opt.cmd}]/ \
and opt.cmd =~/M/
m=$1
@@ -191,8 +192,8 @@ module SiSU_urls
@u.each do |x,y|
if @opt.fns =~ @m_regular
if @opt.cmd =~/[MVv]/
- if x=~/^([abchHNopwxXyY])/ \
- and @opt.cmd=~/[abchHNopwxXyY]/ \
+ if x=~/^([abchHNoptwxXyY])/ \
+ and @opt.cmd=~/[abchHNoptwxXyY]/ \
and x=~/^[#{@opt.cmd}]/
m=$1
SiSU_Screen::Ansi.new(@opt.cmd,"-#{x}","#{@prog.web_browser} #{@env.url.output_tell}/#{@fnb}/#{y}").result