B2022-061: handle newlines in Procedure Titles, in printed page headers (pagelist items) and transition text

This commit is contained in:
2022-06-03 15:09:45 +00:00
parent fa5d78f844
commit bb3b76b0c2
2 changed files with 5 additions and 0 deletions

View File

@@ -1040,6 +1040,9 @@ namespace VEPROMS.CSLA.Library
}
string parenstr = tb._ToItem.MyProcedure.MyContent.Text;
parenstr = parenstr.Replace("\\LINE ", " ").Replace("\r\n", " ");
// B2022-061: \line (new line) in procedure title was putting a line in transition text in editor & actually
// printing '\line'
parenstr = parenstr.Replace("\\line ", "");
StringBuilder lretstr = new StringBuilder();
// LATER: For an else - Do I need to strip underlining here? See promsnt\lib\edit\gettran.c
if (parenstr != "<NO TITLE>" || tb._FormatData.ProcData.PrintNoTitle)