Browse Source

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
shortcuts
Daniel Grunwald 20 years ago
parent
commit
e6dc607e4f
  1. 2
      src/Libraries/ICSharpCode.TextEditor/Project/Src/Util/RtfWriter.cs

2
src/Libraries/ICSharpCode.TextEditor/Project/Src/Util/RtfWriter.cs

@ -144,7 +144,7 @@ namespace ICSharpCode.TextEditor.Util
printWord = word.Word; printWord = word.Word;
} }
rtf.Append(printWord.Replace("{", "\\{").Replace("}", "\\}")); rtf.Append(printWord.Replace(@"\", @"\\").Replace("{", "\\{").Replace("}", "\\}"));
} }
offset += word.Length; offset += word.Length;
break; break;

Loading…
Cancel
Save