Convert Hard hyphens to soft hyphens so that the PDF can be searched for hyphens.
This commit is contained in:
parent
a961b0cc6b
commit
93043d7fd4
@ -166,10 +166,10 @@ namespace Volian.Controls.Library
|
||||
@"\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
|
||||
if (text.Contains(@"\u8209?") && epMode == E_EditPrintMode.Print)
|
||||
text = text.Replace(@"\u8209?", "-");
|
||||
text = CreateRtf(colorLinks, text, tableShouldBeOutlined, wordsShouldBeReplaced, numbersShouldBeFormated, tableHasBorder, ROsShouldBeAdjusted, underlineAfterDashSpace);
|
||||
StartText = text;
|
||||
ProfileTimer.Pop(profileDepth);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user