diff --git a/PROMS/DataLoader/Sections.cs b/PROMS/DataLoader/Sections.cs index 03e050d8..0fe47ab9 100644 --- a/PROMS/DataLoader/Sections.cs +++ b/PROMS/DataLoader/Sections.cs @@ -349,7 +349,10 @@ namespace DataLoader // (see above comment for accessory pages to see the difference) else { - tbuff = TextConvert.ConvertText(dr["TextM"].ToString().Trim(), ConvertCaret); + string t = dr["Text"].ToString().PadRight(80, ' ').Substring(0, 75).TrimEnd(); + string tm = dr["TextM"].ToString().Trim(); + string secttitle = tm == null || tm == "" ? t : tm; + tbuff = TextConvert.ConvertText(secttitle, ConvertCaret); } //// TESTS were run & it looked like that whitespace was removed before saving, @@ -374,7 +377,7 @@ namespace DataLoader } else { - menustr = TextConvert.ConvertText(dr["Text"].ToString().PadRight(80, ' ').Substring(0, 75).TrimEnd(), ConvertCaret); + menustr = tbuff; } } else