From 076e4afc61b216e34959bd4e3701f1fa19972d5c Mon Sep 17 00:00:00 2001 From: Luboš Luňák Date: Wed, 25 Jun 2014 15:20:55 +0200 Subject: MSWord uses \xb for linebreaks in DB fields, take 2 (bnc#878854) This commit also does the conversion when reading the data from a data source using the mail merge wizard. Change-Id: Ia14417507b6ddce955fec26142a42ce51f77de4e --- sw/source/uibase/dbui/dbmgr.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/sw/source/uibase/dbui/dbmgr.cxx b/sw/source/uibase/dbui/dbmgr.cxx index 852879d6a727..b44f8576a130 100644 --- a/sw/source/uibase/dbui/dbmgr.cxx +++ b/sw/source/uibase/dbui/dbmgr.cxx @@ -1655,6 +1655,7 @@ OUString SwDBManager::GetDBField(uno::Reference xColumnProps, try { sRet = xColumn->getString(); + sRet = sRet.replace( '\xb', '\n' ); // MSWord uses \xb as a newline } catch(const SQLException&) { -- cgit