From 124940dc4fb9c187f5ba0b7128f09196e1b54983 Mon Sep 17 00:00:00 2001 From: Kathy Date: Mon, 30 Mar 2020 13:34:03 +0000 Subject: [PATCH] =?UTF-8?q?B2020-040:=20section=20with=20title=20tht=20inc?= =?UTF-8?q?ludes=20number=20&=20comma=20with=20an=20empty=20section=20numb?= =?UTF-8?q?er=20prints=20with=20=E2=80=98,=20=E2=80=98=20at=20the=20beginn?= =?UTF-8?q?ing=20of=20text?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PROMS/Volian.Print.Library/VlnSvgPageHelper.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/PROMS/Volian.Print.Library/VlnSvgPageHelper.cs b/PROMS/Volian.Print.Library/VlnSvgPageHelper.cs index ac3122d0..c7d23d2f 100644 --- a/PROMS/Volian.Print.Library/VlnSvgPageHelper.cs +++ b/PROMS/Volian.Print.Library/VlnSvgPageHelper.cs @@ -1813,6 +1813,10 @@ i = 0; } else plstr = plstr.Replace(token, ""); + // B2020-040: pagelist was {SECTIONLEVELNUMBER}, {SECTIONLEVELTITLE} and if no SECTIONLEVELNUMBER exists, printed + // 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; case "{METASECTIONNUMBER}": // This will print the top level section number