[Webfunds-commits] java/webfunds/ricardian IniFileReader.java
Ian Grigg
iang@cypherpunks.ai
Thu, 29 Mar 2001 09:31:12 -0400 (AST)
iang 01/03/29 09:31:12
Modified: webfunds/ricardian IniFileReader.java
Log:
fixed bug that doubled the blank lines in a field = ' ... ' construct
Revision Changes Path
1.16 +9 -3 java/webfunds/ricardian/IniFileReader.java
Index: IniFileReader.java
===================================================================
RCS file: /home/webfunds/cvsroot/java/webfunds/ricardian/IniFileReader.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- IniFileReader.java 2000/10/14 01:23:25 1.15
+++ IniFileReader.java 2001/03/29 13:31:11 1.16
@@ -1,5 +1,5 @@
/*
- * $Id: IniFileReader.java,v 1.15 2000/10/14 01:23:25 iang Exp $
+ * $Id: IniFileReader.java,v 1.16 2001/03/29 13:31:11 iang Exp $
*
* Copyright (c) Systemics Ltd 1995-1999 on behalf of
* the WebFunds Development Team. All Rights Reserved.
@@ -364,10 +364,16 @@
{
temp = lines[lineNum++];
// temp = bufr.readLine();
+
+ //
+ // Wierd. This needed to be if-else-else,
+ // all the way through, or it would turn
+ // empty lines into two empties.
+ // This bug seems to have always existed.
+ //
if (temp.length() ==0)
value += "\n";
-
- if (temp.endsWith("'"))
+ else if (temp.endsWith("'"))
{
value += temp.substring(0,temp.length()-1) + "\n";
}