Hi,

this patch fixes an RTF import problem.

Christina
>From f51fb1f48aa2fce3db9681296d940687a455a2d7 Mon Sep 17 00:00:00 2001
From: Christina Rossmanith <[email protected]>
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 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

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

_______________________________________________
LibreOffice mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice

Reply via email to