Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

response ending in 2 newlines leads to empty message #5361

Closed
erohmensing opened this issue Mar 3, 2020 · 0 comments · Fixed by #5362
Closed

response ending in 2 newlines leads to empty message #5361

erohmensing opened this issue Mar 3, 2020 · 0 comments · Fixed by #5362
Labels
area:rasa-oss 🎡 Anything related to the open source Rasa framework type:bug 🐛 Inconsistencies or issues which will cause an issue or problem for users or implementors.

Comments

@erohmensing
Copy link
Contributor

If you define your response using the +| format in YAML,

  utter_newline:
    - text: |+
          This is one part of my response:  
          
          Something 
          Something else

  utter_other:
...

the representation of this automatically ends in \n\n. However since we split based on those characters, you end up with an empty message, e.g. in the rest channel:

[
  {
    “recipient_id”: “test1",
    “text”: “This is one part of my response:  ”
  },
  {
    “recipient_id”: “test1",
    “text”: “Something  \n20910 Something else”
  },
  {
    “recipient_id”: “test1",
    “text”: “”
  }
]
@erohmensing erohmensing added type:bug 🐛 Inconsistencies or issues which will cause an issue or problem for users or implementors. area:rasa-oss 🎡 Anything related to the open source Rasa framework labels Mar 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:rasa-oss 🎡 Anything related to the open source Rasa framework type:bug 🐛 Inconsistencies or issues which will cause an issue or problem for users or implementors.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant