I want to have multiple lines in my Hero Card text and I followed this post by doing the following in my code
var card = new HeroCard {
Title = buildName + " " + buildType + " on " + buildDate,
Subtitle = "Build Evaluation: " + buildEvalResult,
Text = "Hello \n\n World \n\r Hello! \r\r New Line?",
Images = new List<CardImage> ()
{
new CardImage(url: await getHeroCardPic("HAPPY"))
},
Buttons = new List<CardAction> ()
{
// card Actions...
}
};
When I try this out in MS Teams I see a card with no line breaks in the text. Am I doing this wrong, or does MS Teams not support this yet? Thanks for the help.
I got this working using <br> like so: \n\n , \n, and \n\r don't seem to work for ms teams
Text = "Hello \nWorld \nHello! \r\r New Line? <br> Word Here \n Not working"
Most helpful comment
I got this working using
<br>like so: \n\n , \n, and \n\r don't seem to work for ms teamsText = "Hello \nWorld \nHello! \r\r New Line? <br> Word Here \n Not working"