[BioRuby-cvs] bioruby/lib/bio/sequence format.rb,1.4.2.1,1.4.2.2

Naohisa Goto ngoto at dev.open-bio.org
Thu Feb 14 03:32:16 UTC 2008


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

Modified Files:
      Tag: BRANCH-biohackathon2008
	format.rb 
Log Message:
in wrap(), the last "\n" should be added for non-empty string


Index: format.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/sequence/format.rb,v
retrieving revision 1.4.2.1
retrieving revision 1.4.2.2
diff -C2 -d -r1.4.2.1 -r1.4.2.2
*** format.rb	14 Feb 2008 03:13:46 -0000	1.4.2.1
--- format.rb	14 Feb 2008 03:32:14 -0000	1.4.2.2
***************
*** 170,174 ****
      end
      result << left if left
!     return result.join("\n")
    end
  
--- 170,176 ----
      end
      result << left if left
!     result_string = result.join("\n")
!     result_string << "\n" unless result_string.empty?
!     return result_string
    end
  




More information about the bioruby-cvs mailing list