better tabbing
This commit is contained in:
parent
d15e784754
commit
5c3915731f
1 changed files with 4 additions and 4 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/local/bin/ruby -w
|
#!/usr/local/bin/ruby -w
|
||||||
|
|
||||||
# $Dwarf: ripnews.rb,v 1.55 2003/04/28 09:57:30 ward Exp $
|
# $Dwarf: ripnews.rb,v 1.56 2003/04/28 10:29:20 ward Exp $
|
||||||
# $Source$
|
# $Source$
|
||||||
|
|
||||||
require 'date'
|
require 'date'
|
||||||
|
|
@ -353,14 +353,14 @@ def check_ext(group, filename, mode, subject)
|
||||||
case mode
|
case mode
|
||||||
when "s"
|
when "s"
|
||||||
if @config[group].has_key?("-SD") && ( filename =~ /\.(#{@config[group]["-SD"]})$/ )
|
if @config[group].has_key?("-SD") && ( filename =~ /\.(#{@config[group]["-SD"]})$/ )
|
||||||
print " Marking '#{subject}' matches as read\n"
|
print "Marking '#{subject}' matches as read\n"
|
||||||
@articles.group_update_newsrc(subject)
|
@articles.group_update_newsrc(subject)
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
return @config[group].has_key?("-S") ? ( filename =~ /\.(#{@config[group]["-S"]})$/ ) : true
|
return @config[group].has_key?("-S") ? ( filename =~ /\.(#{@config[group]["-S"]})$/ ) : true
|
||||||
when "m"
|
when "m"
|
||||||
if @config[group].has_key?("-MD") && ( filename =~ /\.(#{@config[group]["-MD"]})$/ )
|
if @config[group].has_key?("-MD") && ( filename =~ /\.(#{@config[group]["-MD"]})$/ )
|
||||||
print " Marking '#{subject}' matches as read\n"
|
print "Marking '#{subject}' matches as read\n"
|
||||||
@articles.group_update_newsrc(subject)
|
@articles.group_update_newsrc(subject)
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
@ -431,7 +431,7 @@ for group in @config.keys.sort
|
||||||
for i in @articles.get_group_subjects
|
for i in @articles.get_group_subjects
|
||||||
print "#{i}\n" if Debuglevel > 2
|
print "#{i}\n" if Debuglevel > 2
|
||||||
if @config[group].has_key?("-MR") and i =~ /#{@config[group]["-MR"]}/
|
if @config[group].has_key?("-MR") and i =~ /#{@config[group]["-MR"]}/
|
||||||
print " Marking '#{i}' matches as read\n"
|
print "Marking '#{i}' matches as read\n"
|
||||||
@articles.group_update_newsrc(i)
|
@articles.group_update_newsrc(i)
|
||||||
next
|
next
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue