mbukovy
(Mbukovy)
1
Hello,
when we use two newlines in our yaml file, it breaks the response into two messages.
Example:
utter_test_newlines:
- text: |-
Hey man
Druhý riadok
Štvrtý riadok
This will produce two responses Hay man\nDruhý riadok
and Štvrtý riadok
, see the image (the same on callback channel)
Please, how can we preserve newlines and keep it in one response message only?
2 Likes
Dustyposa
(Dustyposa)
2
I can’t make sure this is a bug.
But to do that. you expected, you can try. this way:
utter_test_newlines:
- text: "Hey man\nDruhý riadok\n\nŠtvrtý riadok"
mbukovy
(Mbukovy)
3
Need to add, that we use php yaml_emit function PHP: yaml_emit - Manual
So it’s not very convenient to adjust the yaml format.
teremterem
(Oleksandr Tereshchenko)
4
Hi, I have found a way to do it: