[BioRuby-cvs] bioruby/lib bio.rb,1.89.2.1,1.89.2.2

Jan Aerts aerts at dev.open-bio.org
Wed Feb 20 13:54:21 UTC 2008


Update of /home/repository/bioruby/bioruby/lib
In directory dev.open-bio.org:/tmp/cvs-serv16153

Modified Files:
      Tag: BRANCH-biohackathon2008
	bio.rb 
Log Message:
Fixed bug in formatting features when exporting to EMBL.


Index: bio.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio.rb,v
retrieving revision 1.89.2.1
retrieving revision 1.89.2.2
diff -C2 -d -r1.89.2.1 -r1.89.2.2
*** bio.rb	20 Feb 2008 09:56:22 -0000	1.89.2.1
--- bio.rb	20 Feb 2008 13:54:19 -0000	1.89.2.2
***************
*** 280,284 ****
  class String
    def fold(width = 80)
!     self.gsub(Regexp.new("(.{1,#{width}})"), "\\1\n")
    end
    
--- 280,284 ----
  class String
    def fold(width = 80)
!     self.gsub(Regexp.new("(.{1,#{width}})"), "\\1\n").sub(/\n$/, '')
    end
    
***************
*** 308,310 ****
      return result_string
    end
! end
\ No newline at end of file
--- 308,310 ----
      return result_string
    end
! end




More information about the bioruby-cvs mailing list