summaryrefslogtreecommitdiff
path: root/l10ntools
diff options
context:
space:
mode:
authorIvo Hinkelmann <ihi@openoffice.org>2010-08-05 19:06:15 +0200
committerIvo Hinkelmann <ihi@openoffice.org>2010-08-05 19:06:15 +0200
commit7809a5b0996a2d8da3f182782b5003138b1c0cf8 (patch)
tree916ceeaf12305e1f70e82a9d365fef39ff09eee7 /l10ntools
parent4e56d229e64b2baca9b25af8deb8d6cd954315e0 (diff)
#i10000# remove returns
Notes
split repo tag: libs-gui_ooo/OOO330_m3
Diffstat (limited to 'l10ntools')
-rw-r--r--l10ntools/java/jpropex/java/JPropEx.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/l10ntools/java/jpropex/java/JPropEx.java b/l10ntools/java/jpropex/java/JPropEx.java
index 224bed783cf6..be59d7f29479 100644
--- a/l10ntools/java/jpropex/java/JPropEx.java
+++ b/l10ntools/java/jpropex/java/JPropEx.java
@@ -121,6 +121,7 @@ public class JPropEx
String key;
SdfEntity currentStr;
String value;
+ String str;
for( Enumeration e = prop.propertyNames() ; e.hasMoreElements() ; )
{
key = (String) e.nextElement();
@@ -129,8 +130,11 @@ public class JPropEx
currentStr.setLid( key );
value = prop.getProperty( key , "" );
//if( value.equals("") ) System.err.println("Warning: in file "+inputFileArg+" the string with the key "+key+" has a empty string!");
- currentStr.setText( (prop.getProperty( key )).replaceAll("\t" , " " ) ); // TODO: Quoting!!!!
- data.add( currentStr );
+ str = (prop.getProperty( key )).replaceAll("\t" , " " ); // remove tab
+ str = str.replaceAll("\n"," "); // remove return
+ currentStr.setText( str );
+ if( str.length() > 0 )
+ data.add( currentStr );
}
data.write( outputFileArg );
}