This commit is contained in:
Kathy Ruffing 2012-11-06 13:23:42 +00:00
parent a9ab86f6ae
commit b80375164e

View File

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