From b80375164e35f0bfb5260b12e816295eace713f7 Mon Sep 17 00:00:00 2001 From: Kathy Date: Tue, 6 Nov 2012 13:23:42 +0000 Subject: [PATCH] --- PROMS/Volian.Print.Library/VlnSvgPageHelper.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/PROMS/Volian.Print.Library/VlnSvgPageHelper.cs b/PROMS/Volian.Print.Library/VlnSvgPageHelper.cs index ff139892..7854c563 100644 --- a/PROMS/Volian.Print.Library/VlnSvgPageHelper.cs +++ b/PROMS/Volian.Print.Library/VlnSvgPageHelper.cs @@ -953,6 +953,16 @@ namespace Volian.Print.Library float yOffset = (pageItem.Token.Contains("1") && titleLines.Count <= 2) ? 0 : (-6 * (titleLines.Count - 1)); int cnt = 0; + // if the title broke into two lines & proctitle1 & proctitle2 are on the same line, handle that + // and return the string: + if (titleLines.Count == 2 && pageItem.Token.Contains("1") && pageItem.Token.Contains("2")) + { + plstr = plstr.Replace("{PROCTITLE1}", titleLines[0]); + plstr = plstr.Replace("[PROCTITLE1]", titleLines[0]); + plstr = plstr.Replace("{PROCTITLE2}", titleLines[1]); + plstr = plstr.Replace("[PROCTITLE2]", titleLines[1]); + return plstr; + } foreach (string line in titleLines) { cnt++;