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:
parent
ff796c7e1c
commit
9ad76cb7a3
@ -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;
|
return rtf;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user