Don’t underline “(Continued)” in the top section continue message

Fixed the creation of the section continued message tab
This commit is contained in:
John Jenko 2014-10-31 19:03:24 +00:00
parent a6d88d7bb4
commit a45c860de4
3 changed files with 20 additions and 7 deletions

Binary file not shown.

Binary file not shown.

View File

@ -961,14 +961,27 @@ namespace Volian.Print.Library
if (!itemInfo.IsHigh && !itemInfo.IsSequential && !itemInfo.IsSection) itemInfo = itemInfo.ActiveParent as ItemInfo;
string prTab = "";
string thisTab = itemInfo.MyTab.CleanText.Trim();
ItemInfo mypar = itemInfo.MyParent;
while (mypar.MyParent != null && !mypar.MyParent.IsProcedure)
if (!itemInfo.IsSection)
{
string pTab = mypar.MyTab.CleanText.Trim();
pTab = pTab.TrimEnd(" .".ToCharArray()) + ".";
prTab = pTab + prTab;
mypar = mypar.MyParent;
ItemInfo mypar = itemInfo.MyParent;
while (mypar != null && !mypar.IsProcedure)
{
string pTab = mypar.MyTab.CleanText.Trim();
if (char.IsLetterOrDigit(pTab[0]))
{
pTab = pTab.TrimEnd(" .".ToCharArray()) + ".";
prTab = pTab + prTab;
}
else
{
// There' a bullet or some other graphics character.
// clear out the tab we are building so the we can build
// a continue tab up to this bullet or graphic character.
prTab = "";
thisTab = "";
}
mypar = (mypar.IsSection)? null: mypar.MyParent;
}
}
return (prTab + thisTab.Trim()).TrimEnd(".".ToCharArray());
}