Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 735
Anish Avatar asked Apr 25 '17 10:04

Anish


2 Answers

You should try using \n\n instead.

like image 84
Ezequiel Jadib Avatar answered Sep 29 '22 03:09

Ezequiel Jadib


Well, it depends on

single quotes ' '

double quotes " "

if you use double quotes, you have to use \n\n

and

if you use single quotes, you have to use <br/>

Example,

session.send('This is Line 1 <br/>This is Line 2<br/>');


session.send("This is line 1\n\n This is line 2\n\n");
like image 31
SMshrimant Avatar answered Sep 29 '22 02:09

SMshrimant