B2018-060 meta file showed extra newline character when printing a tab bullet. The visual studio rtf class is doing this beyond our control. We added logic to remove the extra newline characters.

This commit is contained in:
John Jenko 2018-04-17 16:14:32 +00:00
parent ff796c7e1c
commit 9ad76cb7a3

View File

@ -4593,7 +4593,14 @@ namespace Volian.Print.Library
}
}
}
if (changed) return rtb.Rtf.Replace("<dblbs>", @"\\"); // put back the backslash character
if (changed)
{
if (rtb.Rtf.EndsWith(" \\par\r\n}\r\n") && rtf.EndsWith(" }")) //B2018-060 rtb.RTF added extra new line characters and commands to the end. so remove it.
rtf = rtb.Rtf.Replace(" \\par\r\n}\r\n", " }");
else
rtf = rtb.Rtf;
return rtf.Replace("<dblbs>", @"\\"); // put back the backslash character
}
}
}
return rtf;