Fix Logic to replace a Hard-Hyphen with a Hyphen

This commit is contained in:
Rich 2015-01-24 20:37:11 +00:00
parent 59bc89e4f2
commit 42ba094c03

View File

@ -169,8 +169,7 @@ namespace Volian.Controls.Library
text = CreateRtf(colorLinks, text, tableShouldBeOutlined, wordsShouldBeReplaced, numbersShouldBeFormated, tableHasBorder, ROsShouldBeAdjusted, underlineAfterDashSpace); text = CreateRtf(colorLinks, text, tableShouldBeOutlined, wordsShouldBeReplaced, numbersShouldBeFormated, tableHasBorder, ROsShouldBeAdjusted, underlineAfterDashSpace);
// Replace Hard Hyphens with normal hyphen so the PDF search for hyphens will work properly // Replace Hard Hyphens with normal hyphen so the PDF search for hyphens will work properly
if (text.Contains(@"\u8209?") && epMode == E_EditPrintMode.Print) if (text.Contains(@"\u8209?") && epMode == E_EditPrintMode.Print)
text = OriginalText.Replace(@"\u8209?", "-"); text = text.Replace(@"\u8209?", "-");
StartText = text; StartText = text;
ProfileTimer.Pop(profileDepth); ProfileTimer.Pop(profileDepth);
} }