This commit is contained in:
Kathy Ruffing 2011-04-19 14:54:09 +00:00
parent 99d18fec1c
commit 5c6a21a96e

View File

@ -1239,7 +1239,7 @@ namespace VEPROMS.CSLA.Library
retval = retval.Replace("\r\n", ";"); retval = retval.Replace("\r\n", ";");
return retval; return retval;
} }
private static string StripRtfFormatting(string rtf) public static string StripRtfFormatting(string rtf)
{ {
string retval = rtf; string retval = rtf;
retval = Regex.Replace(retval, @"\\b0 ?", ""); retval = Regex.Replace(retval, @"\\b0 ?", "");
@ -1252,8 +1252,8 @@ namespace VEPROMS.CSLA.Library
//retval = Regex.Replace(retval, @"\\super ?", ""); //retval = Regex.Replace(retval, @"\\super ?", "");
//retval = Regex.Replace(retval, @"\\sub ?", ""); //retval = Regex.Replace(retval, @"\\sub ?", "");
//retval = Regex.Replace(retval, @"\\nosupersub ?", ""); //retval = Regex.Replace(retval, @"\\nosupersub ?", "");
retval = Regex.Replace(retval, @"\\up[30] ?", ""); retval = Regex.Replace(retval, @"\\up[320] ?", "");
retval = Regex.Replace(retval, @"\\dn[30] ?", ""); retval = Regex.Replace(retval, @"\\dn[320] ?", "");
return retval; return retval;
} }
public static string StripLinks(string rtf) public static string StripLinks(string rtf)
@ -1752,7 +1752,7 @@ namespace VEPROMS.CSLA.Library
} }
} }
private ItemInfo _ActiveSection = null; private ItemInfo _ActiveSection = null;
public ItemInfo MyActiveSection { get { return _ActiveSection; } } public ItemInfo MyActiveSection { get { return ActiveSection; } }
public ItemInfo ActiveSection public ItemInfo ActiveSection
{ {
get get
@ -1993,6 +1993,7 @@ namespace VEPROMS.CSLA.Library
if (IsCaution || IsNote) tbformat = CheckNoteCautionTab(tbformat); if (IsCaution || IsNote) tbformat = CheckNoteCautionTab(tbformat);
int ordinal = Ordinal; int ordinal = Ordinal;
if (!IsSection && !IsProcedure) tbformat = tbformat.Replace("{Section Prefix}", this.MyActiveSection.MyTab.CleanText);
string alpha = AlphabeticalNumbering(ordinal); string alpha = AlphabeticalNumbering(ordinal);
tbformat = tbformat.Replace("{alpha}", alpha.ToLower()); tbformat = tbformat.Replace("{alpha}", alpha.ToLower());
tbformat = tbformat.Replace("{alphaWpar}", alpha.ToLower()); tbformat = tbformat.Replace("{alphaWpar}", alpha.ToLower());