Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

164
Vistas
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?

over 4 years ago · Santiago Trujillo
2 Respuestas
Responde la pregunta

0

You should try using \n\n instead.

over 4 years ago · Santiago Trujillo Denunciar

0

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");
over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda