C2021-024: Wolf Creek Top/Bottom continue message, do not include bullet and bullet or bullet followed by sub-steps in tab
C2021-024: Top/Bottom continue message, do not include bullet and bullet or bullet followed by sub-steps in tab
This commit is contained in:
@@ -2727,10 +2727,15 @@ namespace Volian.Print.Library
|
||||
else
|
||||
{
|
||||
// F2020-023: tab includes parent tab and if caution/note don't use its parent, go up another level
|
||||
if (MyItemInfo.IsCautionOrNotePart)
|
||||
myMsg = myMsg.Replace(@"%s", MyItemInfo.MyParent.MyParent.CombinedTab);
|
||||
else
|
||||
myMsg = myMsg.Replace(@"%s", MyItemInfo.MyParent.CombinedTab);
|
||||
string noBullet = MyItemInfo.IsCautionOrNotePart ? MyItemInfo.MyParent.MyParent.CombinedTab : MyItemInfo.MyParent.CombinedTab;
|
||||
// C2021-024: WCN1 if bullet exists in combined tab, stop right before bullet.
|
||||
if (docstyle.Continue.Top.RemoveBullet)
|
||||
{
|
||||
int ind = noBullet.IndexOf(".o");
|
||||
if (ind < 0) ind = noBullet.IndexOf(".*");
|
||||
if (ind > -1) noBullet = noBullet.Substring(0, ind);
|
||||
}
|
||||
myMsg = myMsg.Replace(@"%s", noBullet);
|
||||
}
|
||||
}
|
||||
if (myMsg.IndexOf(@"%3d") > -1)
|
||||
@@ -3034,10 +3039,14 @@ namespace Volian.Print.Library
|
||||
string tmp = tb.Trim();
|
||||
if (!MyItemInfo.MyParent.IsHigh)
|
||||
{
|
||||
if (MyItemInfo.IsCautionOrNotePart)
|
||||
tmp = MyItemInfo.MyParent.MyParent.CombinedTab.Trim();
|
||||
else
|
||||
tmp = MyItemInfo.MyParent.CombinedTab.Trim();
|
||||
tmp = MyItemInfo.IsCautionOrNotePart ? MyItemInfo.MyParent.MyParent.CombinedTab : MyItemInfo.MyParent.CombinedTab;
|
||||
// C2021-024: WCN1 if bullet exists in combined tab, stop right before bullet.
|
||||
if (MyItemInfo.MyDocStyle.Continue.Top.RemoveBullet)
|
||||
{
|
||||
int ind = tmp.IndexOf(".o");
|
||||
if (ind < 0) ind = tmp.IndexOf(".*");
|
||||
if (ind > -1) tmp = tmp.Substring(0, ind);
|
||||
}
|
||||
}
|
||||
myMsg = myMsg.Replace(@"%s", tmp);
|
||||
}
|
||||
|
Reference in New Issue
Block a user