From ae4431b327af7587719caf8c2da81dccf78addbb Mon Sep 17 00:00:00 2001 From: Kathy Date: Thu, 2 Apr 2020 13:07:02 +0000 Subject: [PATCH] B2020-041: exponent prints with character codes in psi (and any pagelist item), handles overlap of bold and italics --- PROMS/Volian.Svg.Library/iTextSharp.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PROMS/Volian.Svg.Library/iTextSharp.cs b/PROMS/Volian.Svg.Library/iTextSharp.cs index cd684d44..ab5bc710 100644 --- a/PROMS/Volian.Svg.Library/iTextSharp.cs +++ b/PROMS/Volian.Svg.Library/iTextSharp.cs @@ -706,10 +706,10 @@ namespace Volian.Svg.Library if ((stindx + 2 < text.Length - 1 && text.ToUpper().IndexOf("UL", stindx + 1) == stindx + 1) || //don't replace it // B2020-041: PSI (this happened for all pagelist items) print doesn't resolve super/sub script, bold, italics: (stindx + 2 < text.Length - 1 && text.ToUpper().IndexOf("UP", stindx + 1) == stindx + 1) || - (stindx + 2 < text.Length - 1 && text.ToUpper().IndexOf("B ", stindx + 1) == stindx + 1) || + (stindx + 1 < text.Length - 1 && text.ToUpper().IndexOf("B", stindx + 1) == stindx + 1) || (stindx + 2 < text.Length - 1 && text.ToUpper().IndexOf("B0", stindx + 1) == stindx + 1) || (stindx + 2 < text.Length - 1 && text.ToUpper().IndexOf("DN", stindx + 1) == stindx + 1) || - (stindx + 2 < text.Length - 1 && text.ToUpper().IndexOf("I ", stindx + 1) == stindx + 1) || + (stindx + 1 < text.Length - 1 && text.ToUpper().IndexOf("I", stindx + 1) == stindx + 1) || (stindx + 2 < text.Length - 1 && text.ToUpper().IndexOf("I0", stindx + 1) == stindx + 1)) stindx = text.IndexOf("\\", stindx + 1); else