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++;