From d2a442e385b14855d57dbb4128fd5970c302e725 Mon Sep 17 00:00:00 2001 From: John Date: Fri, 14 Sep 2018 14:05:27 +0000 Subject: [PATCH] =?UTF-8?q?B2018-128=20Added=20check=20for=20font=20change?= =?UTF-8?q?=20command.=20Fixes=20inserting=20RO=E2=80=99s=20containing=20h?= =?UTF-8?q?yphens=20into=20tables,=20preventing=20an=20extra=20space=20to?= =?UTF-8?q?=20appear=20after=20the=20hyphen.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PROMS/VEPROMS.CSLA.Library/Extension/DisplayText.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PROMS/VEPROMS.CSLA.Library/Extension/DisplayText.cs b/PROMS/VEPROMS.CSLA.Library/Extension/DisplayText.cs index f1fcadcb..45667407 100644 --- a/PROMS/VEPROMS.CSLA.Library/Extension/DisplayText.cs +++ b/PROMS/VEPROMS.CSLA.Library/Extension/DisplayText.cs @@ -669,7 +669,8 @@ namespace VEPROMS.CSLA.Library char tst = Cmd[1]; // consider rtf commands up/dn/b/ul/i // B2018-067 Added more specific comparison to eliminate \u8209? from consideration - if (Cmd.StartsWith("\\up") || tst == 'd' || tst == 'b' || Cmd.StartsWith("\\ul") || tst == 'i') return true; + // B2018-128 Added check for font specification (tst =='f') so we don't get a hard space after the font command (happend inserting RO in tables) - Farely SAMGs + if (Cmd.StartsWith("\\up") || tst == 'd' || tst == 'b' || Cmd.StartsWith("\\ul") || tst == 'i' || tst =='f') return true; } return false; }