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

New commits:
commit f0c2bb87122307cd7462a84a5196ec24dbfd3fb6
Author: Luboš Luňák <l.lu...@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 <caol...@redhat.com>
    Tested-by: Caolán McNamara <caol...@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&)
             {
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to