diff --git a/Src/xWorks/LcmWordGenerator.cs b/Src/xWorks/LcmWordGenerator.cs index c1ee7f79ef..528ae1d341 100644 --- a/Src/xWorks/LcmWordGenerator.cs +++ b/Src/xWorks/LcmWordGenerator.cs @@ -2187,7 +2187,7 @@ internal static WP.Run CreateBeforeAfterBetweenRun(string text, string styleDisp } } - if (text.Contains("\\A")) + if (text.Contains("\\A") || text.Contains("\\0A") || text.Contains("\\a") || text.Contains("\\0a")) { var run = new WP.Run() { @@ -2195,7 +2195,7 @@ internal static WP.Run CreateBeforeAfterBetweenRun(string text, string styleDisp }; // If the before after between text has line break characters return a composite run including the line breaks // Use Regex.Matches to capture both the content and the delimiters - var matches = Regex.Matches(text, @"(\\A|\\0A)|[^\\]*(?:(?=\\A|\\0A)|$)"); + var matches = Regex.Matches(text, @"(\\A|\\0A|\\a|\\0a)|[^\\]*(?:(?=\\A|\\0A|\\a|\\0a)|$)"); foreach (Match match in matches) { if (match.Groups[1].Success)