Convert Hard hyphens to soft hyphens so that the PDF can be searched for hyphens.

This commit is contained in:
Rich 2015-02-09 16:06:00 +00:00
parent a961b0cc6b
commit 93043d7fd4

View File

@ -166,10 +166,10 @@ namespace Volian.Controls.Library
@"\par\par\par "); @"\par\par\par ");
} }
} }
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 = text.Replace(@"\u8209?", "-"); text = text.Replace(@"\u8209?", "-");
text = CreateRtf(colorLinks, text, tableShouldBeOutlined, wordsShouldBeReplaced, numbersShouldBeFormated, tableHasBorder, ROsShouldBeAdjusted, underlineAfterDashSpace);
StartText = text; StartText = text;
ProfileTimer.Pop(profileDepth); ProfileTimer.Pop(profileDepth);
} }