I'm trying to print a series of objects in a List using the C# version of AWS Lambda. Its linked to my AWS RDS and my Lex bot. Currently, when I test the bot using the LEX test console, the output that is printed isn't formatted with line breaks even though I'm using the \n line break for C#.
Example Code:
var result = string.Empty;
result = $"Events for {User}:";
foreach (var evt in events)
{
result += $"\n\n{evt.ID} - {evt.FeedbackType} - {evt.Status} - {evt.OpenedDate.ToString()}";
}
return result;
Below is the output I am getting on Lex:
Can anyone please explain how to fix this or if its an issue with the LEX Console? Thanks!