F2021-075 Added logic to remove the dash character that is between the section number and section title if there isn’t a section number.
This commit is contained in:
parent
12816e1d75
commit
a14dae6f91
@ -1903,6 +1903,10 @@ i = 0;
|
|||||||
// text starts with a ', ' - remove it.
|
// text starts with a ', ' - remove it.
|
||||||
if (plstr.StartsWith(", ") && plstr.IndexOf("{SECTIONLEVELTITLE}") == 2)
|
if (plstr.StartsWith(", ") && plstr.IndexOf("{SECTIONLEVELTITLE}") == 2)
|
||||||
plstr = plstr.Substring(2);
|
plstr = plstr.Substring(2);
|
||||||
|
// F2021-075 pagelist was {SECTIONLEVELNUMBER} - {SECTIONLEVELTITLE} and if no SECTIONLEVELNUMBER exists, printed
|
||||||
|
// text starts with a ' - ' - remove it.
|
||||||
|
else if (plstr.StartsWith(" - ") && plstr.IndexOf("{SECTIONLEVELTITLE}") == 3)
|
||||||
|
plstr = plstr.Substring(3);
|
||||||
//svgGroup.Add(PageItemToSvgText(pageItem, pageItem.Token.Replace(token, section.DisplayNumber)));
|
//svgGroup.Add(PageItemToSvgText(pageItem, pageItem.Token.Replace(token, section.DisplayNumber)));
|
||||||
break;
|
break;
|
||||||
case "{METASECTIONNUMBER}": // This will print the top level section number
|
case "{METASECTIONNUMBER}": // This will print the top level section number
|
||||||
|
Loading…
x
Reference in New Issue
Block a user