Referencing this closed issue: https://github.com/Microsoft/BotBuilder/issues/920
I have the same problem as the author, on Facebook channel: I'd like to add line breaks but I can't. I tried things I saw on other threads like <br>
, <br />
,
, \n \n, \r\n, \r \n... Nothing works.
In my below examples, ServicesToDisplay
is just an array of strings joined by ' \n' (space space \n, because bot framework strings are as I saw, in Markdown
).
Only one thing works, adding a random string:
session.send(`Interventions le ${results.response.entity}:
qwe
${servicesToDisplay}`);
Leads to well interpreted line breaks:
And without the string:
session.send(`Interventions le ${results.response.entity}:
${servicesToDisplay}`);
It leads to no line break:
Do you have any idea on how to perform the same behaviour without the string between ?