This commit is contained in:
@@ -2807,9 +2807,11 @@ namespace VEPROMS.CSLA.Library
|
||||
_MyHeader.Justify = ContentAlignment.MiddleCenter;
|
||||
_MyHeader.Text = (!FormatStepData.TabData.NoTrim)?tbformat.Replace("\\xA0"," ").Trim():tbformat.Replace("\\xA0"," ");
|
||||
_MyHeader.CleanText = StripRtfFormatting(_MyHeader.Text);
|
||||
// if there is only step in the group - no bullet is used, if more that one replace the tab
|
||||
// if there is only step in the group or we have a change in step type (caution/note) when there is
|
||||
// use of the MixCautionsAndNotes format flag - no bullet is used, if more that one replace the tab
|
||||
// with a bullet. Also, if only one in group and tab text ends with 'S', remove it:
|
||||
if (MyPrevious == null && NextItem == null)
|
||||
bool mixCandN = MixCautionNotesDiffType();
|
||||
if ((MyPrevious == null && NextItem == null) || mixCandN)
|
||||
{
|
||||
if (_MyHeader.CleanText.ToUpper().EndsWith("S"))
|
||||
{
|
||||
@@ -2872,6 +2874,14 @@ namespace VEPROMS.CSLA.Library
|
||||
return tbformat;
|
||||
}
|
||||
|
||||
public bool MixCautionNotesDiffType()
|
||||
{
|
||||
if (!FormatStepData.MixCautionsAndNotes) return false;
|
||||
if (IsNote && ((NextItem != null && NextItem.IsCaution) || (MyPrevious != null && MyPrevious.IsCaution))) return true;
|
||||
if (IsCaution && ((NextItem != null && NextItem.IsNote) || (MyPrevious != null && MyPrevious.IsNote))) return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
private bool TabToIdentBAdjustFont()
|
||||
{
|
||||
if ((FormatStepData.TabData.Font.Style & E_Style.Underline) > 0)
|
||||
|
Reference in New Issue
Block a user