Replace Hard Hyphens with normal hyphen so the PDF search for hyphens will work properly
Support using regular hyphens as hard-hyphens
This commit is contained in:
@@ -121,7 +121,7 @@ namespace Volian.Controls.Library
|
||||
_MyItemInfo = itemInfo;
|
||||
OriginalText = InfoText;
|
||||
if (OriginalText.Contains("Prerequisite") && epMode == E_EditPrintMode.Print)
|
||||
OriginalText = Regex.Replace(OriginalText, @"\\{Prerequisite Step: .*?\\}", "");
|
||||
OriginalText = Regex.Replace(OriginalText, @"\\{Prerequisite Step: .*?\\}", "");
|
||||
TextFont = itemInfo.GetItemFont();//GetItemFont();
|
||||
// if in print mode, and this is the HLS of a smart template (checklist formats) see if the hls
|
||||
// splits across 2 lines.
|
||||
@@ -167,6 +167,9 @@ namespace Volian.Controls.Library
|
||||
}
|
||||
}
|
||||
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 = OriginalText.Replace(@"\u8209?", "-");
|
||||
|
||||
StartText = text;
|
||||
ProfileTimer.Pop(profileDepth);
|
||||
|
Reference in New Issue
Block a user