From e6dc607e4f1d70483d1e91ac08afbcfe3b12f8c7 Mon Sep 17 00:00:00 2001 From: Daniel Grunwald Date: Fri, 20 Jan 2006 16:18:18 +0000 Subject: [PATCH] Fixed copy-paste into RTF editors when text contained backslash. git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@1013 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61 --- .../ICSharpCode.TextEditor/Project/Src/Util/RtfWriter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Libraries/ICSharpCode.TextEditor/Project/Src/Util/RtfWriter.cs b/src/Libraries/ICSharpCode.TextEditor/Project/Src/Util/RtfWriter.cs index ed4a16c39b..d639fae130 100644 --- a/src/Libraries/ICSharpCode.TextEditor/Project/Src/Util/RtfWriter.cs +++ b/src/Libraries/ICSharpCode.TextEditor/Project/Src/Util/RtfWriter.cs @@ -144,7 +144,7 @@ namespace ICSharpCode.TextEditor.Util printWord = word.Word; } - rtf.Append(printWord.Replace("{", "\\{").Replace("}", "\\}")); + rtf.Append(printWord.Replace(@"\", @"\\").Replace("{", "\\{").Replace("}", "\\}")); } offset += word.Length; break;