From 23f9aca7c3e9887fd5ccdbfb187029b81b63b3bd Mon Sep 17 00:00:00 2001 From: Nils Fuhrmann Date: Wed, 29 Aug 2001 12:16:38 +0000 Subject: Fixes for creation of StringList #87136#, Fallback is rev 1.21 --- transex3/source/export.cxx | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) (limited to 'transex3/source') diff --git a/transex3/source/export.cxx b/transex3/source/export.cxx index 98a315a15fcb..428cec58a89f 100644 --- a/transex3/source/export.cxx +++ b/transex3/source/export.cxx @@ -2,9 +2,9 @@ * * $RCSfile: export.cxx,v $ * - * $Revision: 1.23 $ + * $Revision: 1.24 $ * - * last change: $Author: nf $ $Date: 2001-08-29 11:50:41 $ + * last change: $Author: nf $ $Date: 2001-08-29 13:16:38 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -2352,12 +2352,12 @@ void Export::MergeRest( ResData *pResData, USHORT nMode ) if ( bDefine || bNextMustBeDefineEOL ) { sHead += "= \\\n"; sHead += sSpace; - sHead += "\t{\\\n\t\t"; + sHead += "\t{\\\n\t"; } else { sHead += "= \n"; sHead += sSpace; - sHead += "\t{\n\t\t"; + sHead += "\t{\n\t"; } WriteToMerged( sHead ); } @@ -2367,13 +2367,15 @@ void Export::MergeRest( ResData *pResData, USHORT nMode ) if ( !sLine.Len()) sLine = sLastListLine; - if (( nT != LIST_UIENTRIES ) && - (( sLine.Search( "{" ) == STRING_NOTFOUND ) || - ( sLine.Search( "{" ) >= sLine.Search( "\"" ))) && - (( sLine.Search( "<" ) == STRING_NOTFOUND ) || - ( sLine.Search( "<" ) >= sLine.Search( "\"" )))) - { - sLine.SearchAndReplace( "\"", "< \"" ); + if ( sLastListLine.Search( "<" ) != STRING_NOTFOUND ) { + if (( nT != LIST_UIENTRIES ) && + (( sLine.Search( "{" ) == STRING_NOTFOUND ) || + ( sLine.Search( "{" ) >= sLine.Search( "\"" ))) && + (( sLine.Search( "<" ) == STRING_NOTFOUND ) || + ( sLine.Search( "<" ) >= sLine.Search( "\"" )))) + { + sLine.SearchAndReplace( "\"", "< \"" ); + } } USHORT nStart, nEnd; -- cgit