Browse Source

clean up display text of clipboard ring items

pull/374/merge
Siegfried Pammer 12 years ago
parent
commit
3096421b41
  1. 2
      src/AddIns/DisplayBindings/AvalonEdit.AddIn/Src/ContextActions/ClipboardRingAction.cs

2
src/AddIns/DisplayBindings/AvalonEdit.AddIn/Src/ContextActions/ClipboardRingAction.cs

@ -24,7 +24,7 @@ namespace ICSharpCode.AvalonEdit.AddIn.ContextActions @@ -24,7 +24,7 @@ namespace ICSharpCode.AvalonEdit.AddIn.ContextActions
public ClipboardRingAction(string text)
{
string entry = text.Trim();
string entry = text.Trim().Replace('\t', ' ').Replace("\r\n", " ").Replace('\r', ' ').Replace('\n', ' ');
if(entry.Length > maxLength)
entry = entry.Substring(0, maxLength-endString.Length) + endString;

Loading…
Cancel
Save