diff --git a/PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs b/PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs index 70ebdfdc..599ce214 100644 --- a/PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs +++ b/PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs @@ -1246,6 +1246,8 @@ namespace VEPROMS.CSLA.Library tmp = tmp.Replace(@"\u160?", "\xA0"); tmp = tmp.Replace(@"\U160?", "\xA0"); tmp = tmp.Replace(@"[xB3]", "\xB3"); + tmp = tmp.Replace(@"\U8209?", "-"); // fixes negative value in scienctific notation + tmp = tmp.Replace(@"\u8209?", "-"); // Look for superscript or subscript and insert the appropriate commands Match roMatch = Regex.Match(tmp, @"(.*?)\\(up2|dn2) (.*?)\\(up0|dn0) "); if (roMatch.Groups.Count == 5)// Superscript or subscript found diff --git a/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs b/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs index e1bd97ea..4bc40b59 100644 --- a/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs +++ b/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs @@ -2451,15 +2451,18 @@ namespace VEPROMS.CSLA.Library protected void SetTabText() { string cltext = null; - if (IsParagraph && !IsSequential) - { - _MyTab.Text = ""; - _MyTab.CleanText = ""; - return; - } int stepType = (int)(MyContent.Type % 10000); string tbformat = IsInRNO ? FormatStepData.TabData.RNOIdentPrint : FormatStepData.TabData.IdentPrint; string tbformate = null; // need this for background documents, to generate tab for editing. + if (IsParagraph && !IsSequential) + { + string tstr = ""; + if (tbformat.Contains("{!.+?}")) + tstr = tbformat.Replace("{!.+?}", " "); // Comanche Peak Indented Paragraph + _MyTab.Text = tstr; + _MyTab.CleanText = tstr; + return; + } if (((ActiveFormat.PlantFormat.FormatData.PurchaseOptions.Value & E_PurchaseOptions.EnhancedBackgrounds) == E_PurchaseOptions.EnhancedBackgrounds) && ((IsHigh && FormatStepData.PageBreakOnStep) || (IsRNOPart && MyHLS.FormatStepData.PageBreakOnStep)))