Search code examples
node.jsbotframework

Microsoft Bot Framework - New line in prompts


How do I add a new line in a prompt?

session.send('This is line 1. This is line 2.');

I want the output to look like:

This is line 1.

This is line 2.

But the output I get is:

This is line 1. This is line 2.

I tried using \n, \r\n and os.EOL but none of them worked. Is it possible to add a new line in a prompt?


Solution

  • You should try using \n\n instead.