Added support to convert the carrot character (^) to the delta symbol in X/Y Plots

Added support for hard spaces in section titles and removed the dash character that was always inserted between the section number and section title.
This commit is contained in:
2016-06-02 19:22:00 +00:00
parent 6ed306e8b9
commit eec1c7f6f9
2 changed files with 13 additions and 3 deletions

View File

@@ -686,7 +686,9 @@ namespace Volian.Print.Library
{
// Remove Procedure Number and Title
string sectionAndStep = Regex.Replace(path + "\x7\x7\x7", "^.+?\\u0007", "");
sectionAndStep = sectionAndStep.Replace("\x11", sectionAndStep[0] == '\x11' ? "" : " - ");
//sectionAndStep = sectionAndStep.Replace("\x11", sectionAndStep[0] == '\x11' ? "" : " - ");
sectionAndStep = sectionAndStep.Replace("\x11", sectionAndStep[0] == '\x11' ? "" : " ");
sectionAndStep = sectionAndStep.Replace("\\u160?", " "); // replace a hardspace with a space
// Split Section frrom Steps
return sectionAndStep.Split("\x7".ToCharArray());
}