Logic to treat Caution/Note types as being unique so that for example, multiple notes of different types will not get bulleted.
This commit is contained in:
parent
2fe9817a8d
commit
eaca5be98f
@ -3856,10 +3856,17 @@ namespace VEPROMS.CSLA.Library
|
||||
|
||||
// If this has a previous, and the tabs of this & previous match
|
||||
if (tbformat != null && MyPrevious != null && !FormatStepData.AlwaysTab && (!FormatStepData.MixCautionsAndNotes || (tbformat == prevTbFormat)))
|
||||
{
|
||||
// used in Ginna's Attachment format
|
||||
// only create bullets for multiple cautions and notes if they are all exactly the same type
|
||||
if (!ActiveFormat.PlantFormat.FormatData.SectData.StepSectionData.OnlyBulletSameCautionNoteType ||
|
||||
(MyPrevious != null && MyPrevious.MyContent.Type == MyContent.Type) ||
|
||||
(NextItem != null && nextItem.MyContent.Type == MyContent.Type))
|
||||
{
|
||||
tbformat = tbformat + ActiveFormat.PlantFormat.FormatData.SectData.StepSectionData.IdentB;
|
||||
TabToIdentBAdjustFont();
|
||||
}
|
||||
}
|
||||
else if (FormatStepData.TabData.IsTransition)
|
||||
return tbformat;
|
||||
// else if this has a next
|
||||
@ -3907,6 +3914,13 @@ namespace VEPROMS.CSLA.Library
|
||||
if (MyPrevious != null && MyContent.Type != MyPrevious.MyContent.Type) return false;
|
||||
if (NextItem != null && MyContent.Type != NextItem.MyContent.Type) return false;
|
||||
}
|
||||
// used in Ginna's Attachment format
|
||||
// treat cautions and notes as different if they are all NOT exactly the same type
|
||||
if (ActiveFormat.PlantFormat.FormatData.SectData.StepSectionData.OnlyBulletSameCautionNoteType)
|
||||
{
|
||||
if (MyPrevious != null && MyPrevious.MyContent.Type != MyContent.Type) return true;
|
||||
if (NextItem != null && NextItem.MyContent.Type != MyContent.Type) return true;
|
||||
}
|
||||
|
||||
if (!FormatStepData.MixCautionsAndNotes) return false;
|
||||
if (IsNote && ((NextItem != null && NextItem.IsCaution) || (MyPrevious != null && MyPrevious.IsCaution))) return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user