From 9ad76cb7a3c14d4e39a7258caea16753d57846f8 Mon Sep 17 00:00:00 2001 From: John Date: Tue, 17 Apr 2018 16:14:32 +0000 Subject: [PATCH] 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. --- PROMS/Volian.Print.Library/vlnParagraph.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/PROMS/Volian.Print.Library/vlnParagraph.cs b/PROMS/Volian.Print.Library/vlnParagraph.cs index 951f6241..84aeb7b6 100644 --- a/PROMS/Volian.Print.Library/vlnParagraph.cs +++ b/PROMS/Volian.Print.Library/vlnParagraph.cs @@ -4593,7 +4593,14 @@ namespace Volian.Print.Library } } } - if (changed) return rtb.Rtf.Replace("", @"\\"); // 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("", @"\\"); // put back the backslash character + } } } return rtf;