C2021-049: Caution, Notes & Warnings with sub-steps should have no blank line between text & bottom box in BNPP1 & BNPPalr

This commit is contained in:
Kathy Ruffing 2021-10-05 14:17:30 +00:00
parent 687becbffc
commit 3d80cf5832

View File

@ -5294,7 +5294,8 @@ namespace Volian.Print.Library
if (MyItemInfo.Steps != null && MyItemInfo.Steps.Count > 0) return 0;
}
// F2021-025: Barakah single column no blank line between last Note/Caution/Warning text and bottom line of box
if (MyItemInfo.ActiveFormat.PlantFormat.FormatData.PrintData.NoBlankLastNoteCautionWarn && (MyItemInfo.IsCaution || MyItemInfo.IsNote))
// C2021-049: Barakah no blank line between last Note/Caution/Warning text, include sub-step text by using 'IsInCautionOrNote'
if (MyItemInfo.ActiveFormat.PlantFormat.FormatData.PrintData.NoBlankLastNoteCautionWarn && (MyItemInfo.IsInCautionOrNote))
{
if ((MyItemInfo.NextItem == null) || (MyItemInfo.MyContent.Type != MyItemInfo.NextItem.MyContent.Type)) return 0;
}