Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index


Am 10.03.2012 15:26, schrieb Chr. Rossmanith:
Hi,

this patch fixes an RTF import problem.
Instead of replacing \n with \r (first version of patch) a line \r\n was added to account for DOS line ends.

Christina
From 33eed2d0567bf131001234c479cf5d3ff76238f3 Mon Sep 17 00:00:00 2001
From: Christina Rossmanith <ChrRossmanith@web.de>
Date: Sat, 10 Mar 2012 15:21:49 +0100
Subject: [PATCH] [PATCH] Bug 45563 - incorrect IMPORT of Zotero RTF, regression

---
 writerfilter/source/rtftok/rtfcontrolwords.cxx |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/writerfilter/source/rtftok/rtfcontrolwords.cxx 
b/writerfilter/source/rtftok/rtfcontrolwords.cxx
index 3dd2672..f7036eb 100644
--- a/writerfilter/source/rtftok/rtfcontrolwords.cxx
+++ b/writerfilter/source/rtftok/rtfcontrolwords.cxx
@@ -39,6 +39,7 @@ RTFSymbol aRTFControlWords[] = {
     {":", CONTROL_SYMBOL, RTF_SUBENTRY},
     {"\\", CONTROL_SYMBOL, RTF_BACKSLASH},
     {"\n", CONTROL_SYMBOL, RTF_PAR},
+    {"\r\n", CONTROL_SYMBOL, RTF_PAR},
     {"_", CONTROL_SYMBOL, RTF_NOBRKHYPH},
     {"{", CONTROL_SYMBOL, RTF_LBRACE},
     {"|", CONTROL_SYMBOL, RTF_FORMULA},
-- 
1.7.4.1


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.