From a14dae6f9182ebaeed8730537ee1f07ab6e0d363 Mon Sep 17 00:00:00 2001 From: John Date: Mon, 1 Nov 2021 15:04:04 +0000 Subject: [PATCH] =?UTF-8?q?F2021-075=20Added=20logic=20to=20remove=20the?= =?UTF-8?q?=20dash=20character=20that=20is=20between=20the=20section=20num?= =?UTF-8?q?ber=20and=20section=20title=20if=20there=20isn=E2=80=99t=20a=20?= =?UTF-8?q?section=20number.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PROMS/Volian.Print.Library/VlnSvgPageHelper.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/PROMS/Volian.Print.Library/VlnSvgPageHelper.cs b/PROMS/Volian.Print.Library/VlnSvgPageHelper.cs index 9a1543d3..6a0eb097 100644 --- a/PROMS/Volian.Print.Library/VlnSvgPageHelper.cs +++ b/PROMS/Volian.Print.Library/VlnSvgPageHelper.cs @@ -1903,8 +1903,12 @@ i = 0; // text starts with a ', ' - remove it. if (plstr.StartsWith(", ") && plstr.IndexOf("{SECTIONLEVELTITLE}") == 2) plstr = plstr.Substring(2); - //svgGroup.Add(PageItemToSvgText(pageItem, pageItem.Token.Replace(token, section.DisplayNumber))); - break; + // 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))); + break; case "{METASECTIONNUMBER}": // This will print the top level section number case "[METASECTIONNUMBER]": if (section.MyParent.IsSection)