/[pupa]/bugcomm/lib/bugcomm/database.rb
ViewVC logotype

Diff of /bugcomm/lib/bugcomm/database.rb

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.14 by okuji, Fri Oct 11 11:33:16 2002 UTC revision 1.15 by okuji, Mon Oct 14 03:17:06 2002 UTC
# Line 700  module BugCommunicator Line 700  module BugCommunicator
700          fields = {}          fields = {}
701          h.each do |k, v|          h.each do |k, v|
702            if /\Atf_(.+)/ =~ k            if /\Atf_(.+)/ =~ k
703              if v.length >= MAX_SHORT_TEXT_LEN              fields[$1] = v.sub(/\A(.{#{MAX_SHORT_TEXT_LEN}}).*/um, '\1...')
               v[MAX_SHORT_TEXT_LEN..v.size] = '...'  
             end  
             fields[$1] = v  
704            elsif /\Asf_(.+)/ =~ k            elsif /\Asf_(.+)/ =~ k
705              fields[$1] = v              fields[$1] = v
706            end            end

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26