The community members are discussing issues with displaying text with line breaks in a bubble block. They have tried using \n to add line breaks, but it is not working as expected. One community member tried a different approach by returning a string with line breaks, but the HTTP API was removing some of the line breaks. Another community member mentioned that the markdown syntax is transformed into a rich text object, and the "-" characters are replaced with "li" (list item) types. The community members are still trying to find a solution to properly add line breaks in the HTTP body so they are rendered correctly in the final message.
Hi, when I put a text into a variable with line-breaks, it´s not working when showing into bubble block. I have tried with '\n' as well but no look. Is there some workaround? For sample: myvar='text1 text2 ... text3'
Hi, I tried with myvar=return "- Ortopedia:\nSegunda a Sexta-feira: das 07h às 19h\nSábados: das 07h às 13h\n- Fisioterapia:\nSegunda a Sexta-feira: das 07h às 19h\nSábados: das 07h às 13h" but the http ap is eating some '\n' on backend. I am receving: "children": [ { "type": "ul", "children": [ { "type": "li", "children": [ { "type": "lic", "children": [ { "bold": true, "text": "Ortopedia:\nSegunda a Sexta-feira: das 07h às 19h\nSábados: das 07h às 13h" } ] } ] }, { "type": "li", "children": [ { "type": "lic", "children": [ { "bold": true, "text": "Fisioterapia:\nSegunda a Sexta-feira: das 07h às 19h\nSábados: das 07h às 13h" } ] } ] } ] } ]
OK, thank you @Baptiste . But, How can I put a linebreak into this string myvar=return "- Ortopedia:\nSegunda a Sexta-feira: das 07h às 19h\nSábados: das 07h às 13h\n- Fisioterapia:\nSegunda a Sexta-feira: das 07h às 19h\nSábados: das 07h às 13h"? I need to put a linebreak before '- Fisioterapia:', but it´s ignored when I receive the http api results. And, the '-' is also ignored as well.
Hi everyone! I'm trying to include line breaks in the body of an HTTP request in Typebot, but \n or \n isn't working as expected. Instead of creating a new line, it displays the \n text literally. Does anyone know how to properly add line breaks in the HTTP body so they are rendered correctly in the final message? Thank you!