Supporting logic to handle the use of the backslash character
Supporting logic to handle the use of the backslash character, and question marks Supporting logic to handle the use of the backslash character, dashes, and symbols Supporting logic to handle the use of the backslash character and dashes
This commit is contained in:
@@ -2484,6 +2484,7 @@ namespace VEPROMS.CSLA.Library
|
||||
retval = StripLinks(retval);
|
||||
retval = ReplaceSpecialCharacters(retval);
|
||||
retval = retval.Replace("\u2011", "-");
|
||||
retval = retval.Replace("\u2572", @"\"); // replace backslash symbol with a backslash
|
||||
retval = Regex.Replace(retval, @"\\line ?", ";"); // better handing of hard returns - replace with semi-colon for use on tree view
|
||||
retval = retval.Replace("\r\n", ";");
|
||||
retval = retval.Replace("\n", ";"); //added for consistency checking with approved version
|
||||
@@ -2931,19 +2932,19 @@ namespace VEPROMS.CSLA.Library
|
||||
if (MyContent.MyEntry == null)
|
||||
{
|
||||
if (DisplayNumber == string.Empty)
|
||||
return DisplayText.Replace("\u2011", "-").Split(" ,.;:-_".ToCharArray())[0] + "...";
|
||||
return DisplayNumber.Replace("\u2011", "-");
|
||||
return DisplayText.Replace("\u2011", "-").Replace("\u2572", @"\\").Split(" ,.;:-_".ToCharArray())[0] + "...";
|
||||
return DisplayNumber.Replace("\u2011", "-").Replace("\u2572", @"\\");
|
||||
}
|
||||
if (MyContent.Number != "") // Add LIB to the Section Number
|
||||
return ((MyContent.MyEntry.MyDocument.LibTitle ?? "") == "" ? "" : "\u1D38\u1D35\u1D2E ") + DisplayNumber;
|
||||
if (MyContent.MyEntry.MyDocument.LibTitle != "")
|
||||
{
|
||||
if (DisplayText.Length <= 7) return "\u1D38\u1D35\u1D2E " + DisplayText.Replace("\u2011", "-");
|
||||
if (DisplayText.Length <= 7) return "\u1D38\u1D35\u1D2E " + DisplayText.Replace("\u2011", "-").Replace("\u2572", @"\\");
|
||||
return "\u1D38\u1D35\u1D2E " + DisplayText.Replace("\u2011", "-").Split(" ,.;:-_".ToCharArray())[0] + "...";
|
||||
}
|
||||
if (DisplayText.Length <= 10)
|
||||
return DisplayText.Replace("\u2011", "-");
|
||||
return DisplayText.Replace("\u2011", "-").Split(" ,.;:-_".ToCharArray())[0] + "...";
|
||||
return DisplayText.Replace("\u2011", "-").Replace("\u2572", @"\\");
|
||||
return DisplayText.Replace("\u2011", "-").Replace("\u2572", @"\\").Split(" ,.;:-_".ToCharArray())[0] + "...";
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
Reference in New Issue
Block a user