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;