Revision: 3624
http://vexi.svn.sourceforge.net/vexi/?rev=3624&view=rev
Author: jeffbuhrt
Date: 2009-08-26 19:03:54 +0000 (Wed, 26 Aug 2009)
Log Message:
-----------
properly handling logging an empty line
Modified Paths:
--------------
trunk/core/org.ibex.util/src/org/ibex/util/IbexLogger.java
Modified: trunk/core/org.ibex.util/src/org/ibex/util/IbexLogger.java
===================================================================
--- trunk/core/org.ibex.util/src/org/ibex/util/IbexLogger.java 2009-08-26
14:31:30 UTC (rev 3623)
+++ trunk/core/org.ibex.util/src/org/ibex/util/IbexLogger.java 2009-08-26
19:03:54 UTC (rev 3624)
@@ -227,7 +227,7 @@
while (str.indexOf('\n') != -1) {
String line = str.substring(0, str.indexOf('\n'));
// HACK - jsexn logging uses \r\n for newlines
- if(line.charAt(line.length()-1)=='\r') line =
line.substring(0,line.length()-1);
+ if(line.length() > 0 && line.charAt(line.length()-1)=='\r')
line = line.substring(0,line.length()-1);
logstream.println(whereMinor + colorize(levelcolor, bright, line));
whereMinor = colorize(GRAY,false,BLANKINDENT);
str = str.substring(str.indexOf('\n') + 1);
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Vexi-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/vexi-svn