[Libreoffice-commits] core.git: Branch 'libreoffice-4-3' - sw/source

Luboš Luňák l.lunak at collabora.com
Thu Jun 26 08:42:03 PDT 2014


 sw/source/core/uibase/dbui/dbmgr.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit f0c2bb87122307cd7462a84a5196ec24dbfd3fb6
Author: Luboš Luňák <l.lunak at collabora.com>
Date:   Wed Jun 25 15:20:55 2014 +0200

    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
    (cherry picked from commit 076e4afc61b216e34959bd4e3701f1fa19972d5c)
    Reviewed-on: https://gerrit.libreoffice.org/9902
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/sw/source/core/uibase/dbui/dbmgr.cxx b/sw/source/core/uibase/dbui/dbmgr.cxx
index 4574a91..79d417d 100644
--- a/sw/source/core/uibase/dbui/dbmgr.cxx
+++ b/sw/source/core/uibase/dbui/dbmgr.cxx
@@ -1669,6 +1669,7 @@ OUString SwDBManager::GetDBField(uno::Reference<XPropertySet> xColumnProps,
             try
             {
                 sRet = xColumn->getString();
+                sRet = sRet.replace( '\xb', '\n' ); // MSWord uses \xb as a newline
             }
             catch(const SQLException&)
             {


More information about the Libreoffice-commits mailing list