Don’t underline “(Continued)” in the top section continue message
Fixed the creation of the section continued message tab
This commit is contained in:
parent
a6d88d7bb4
commit
a45c860de4
Binary file not shown.
Binary file not shown.
@ -961,14 +961,27 @@ namespace Volian.Print.Library
|
|||||||
if (!itemInfo.IsHigh && !itemInfo.IsSequential && !itemInfo.IsSection) itemInfo = itemInfo.ActiveParent as ItemInfo;
|
if (!itemInfo.IsHigh && !itemInfo.IsSequential && !itemInfo.IsSection) itemInfo = itemInfo.ActiveParent as ItemInfo;
|
||||||
string prTab = "";
|
string prTab = "";
|
||||||
string thisTab = itemInfo.MyTab.CleanText.Trim();
|
string thisTab = itemInfo.MyTab.CleanText.Trim();
|
||||||
|
if (!itemInfo.IsSection)
|
||||||
ItemInfo mypar = itemInfo.MyParent;
|
|
||||||
while (mypar.MyParent != null && !mypar.MyParent.IsProcedure)
|
|
||||||
{
|
{
|
||||||
string pTab = mypar.MyTab.CleanText.Trim();
|
ItemInfo mypar = itemInfo.MyParent;
|
||||||
pTab = pTab.TrimEnd(" .".ToCharArray()) + ".";
|
while (mypar != null && !mypar.IsProcedure)
|
||||||
prTab = pTab + prTab;
|
{
|
||||||
mypar = mypar.MyParent;
|
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());
|
return (prTab + thisTab.Trim()).TrimEnd(".".ToCharArray());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user