summaryrefslogtreecommitdiff
path: root/transex3
diff options
context:
space:
mode:
authorNils Fuhrmann <nf@openoffice.org>2003-07-11 09:10:59 +0000
committerNils Fuhrmann <nf@openoffice.org>2003-07-11 09:10:59 +0000
commitfa26fd0c6d65afaac237431e47009b837fb7afc7 (patch)
treeeb42b3c6d242887a75b4da64cf06d24ec05ab9a1 /transex3
parent55c1545fe2b832cec4f6986b4c5e9e1b4abdb9e8 (diff)
Fixes #110799# by removel of multiple whitespaces within character data
Diffstat (limited to 'transex3')
-rw-r--r--transex3/source/cfgmerge.cxx15
1 files changed, 12 insertions, 3 deletions
diff --git a/transex3/source/cfgmerge.cxx b/transex3/source/cfgmerge.cxx
index 26f465e7b2a2..9b1151f34ba6 100644
--- a/transex3/source/cfgmerge.cxx
+++ b/transex3/source/cfgmerge.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: cfgmerge.cxx,v $
*
- * $Revision: 1.26 $
+ * $Revision: 1.27 $
*
- * last change: $Author: hr $ $Date: 2003-06-13 11:40:34 $
+ * last change: $Author: nf $ $Date: 2003-07-11 10:10:59 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -421,10 +421,19 @@ void CfgParser::AddText(
{
USHORT nLang = Export::GetLangByIsoLang( rIsoLang );
if ( nLang != 0xFFFF ) {
+ ByteString sText = rText;
+ USHORT nTextLen = 0;
+ while ( sText.Len() != nTextLen ) {
+ nTextLen = sText.Len();
+ sText.SearchAndReplaceAll( "\n", " " );
+ sText.SearchAndReplaceAll( "\r", " " );
+ sText.SearchAndReplaceAll( "\t", " " );
+ sText.SearchAndReplaceAll( " ", " " );
+ }
USHORT nLangIndex = Export::GetLangIndex( nLang );
pStackData->sResTyp = rResTyp;
WorkOnText( rText, nLangIndex, rResTyp );
- pStackData->sText[ nLangIndex ] = rText;
+ pStackData->sText[ nLangIndex ] = sText;
}
else if ( rIsoLang != NO_TRANSLATE_ISO ) {
ByteString sError( "Unknown language code: " );