Fixed logic for SUM.FMT

Fixed logic to update formats
Fixed logic to paste dashes
This commit is contained in:
Rich
2012-12-06 16:35:46 +00:00
parent 4d0346f0f8
commit fd983f616c
3 changed files with 27 additions and 30 deletions

View File

@@ -1074,6 +1074,9 @@ namespace Volian.Controls.Library
string ptext = myDO.GetData(DataFormats.Text).ToString();
ptext = ptext.TrimEnd("\r\n\t ".ToCharArray());
if (PasteNoReturnsSetting) ptext = ptext.Replace("\r\n", " ");
ptext = ptext.Replace("\u2013", "-"); // Replace EN Dash with hyphen
ptext = ptext.Replace("\u2014", "-"); // Replace EM Dash with hyphen
ptext = ptext.Replace("\u2011", "-"); // Replace non-breaking hyphen with hyphen
myRtb.SelectedText = ptext;
//myRtb.SelectedText = myDO.GetData(DataFormats.Text).ToString();
}