Rasa X UI

Hi, I was trying to put ‘\n’ in between text ( in Bengali language ) and display it in Rasa X using dispatcher.utter_message(text). But ’ \n ’ is not working in Rasa X.

Is there any other way to do ?

@PalGitts what kind of output are you seeing and what would you like to achieve?

Hi Akela,

My expectation is :

বিকল্পগুলি হল :

১. প্রথম

২. দ্বিতীয়

৩. তৃতীয়

But output is coming like :

বিকল্পগুলি হল :১. প্রথম

২. দ্বিতীয়

৩. তৃতীয় .

What i am doing is kind of below snippet,

msg = ‘\n’

for i in L1:

msg += '...' + '\n'

options = ‘’

for i in option_list:

options += str( i ) + '\n'

msg += ‘\n’ + options

Could you share a screenshot on Rasa X? it seems that for most of this it’s actually working, and the first one just doesn’t get a newline?

Hi.,

For now I have managed that issue with multiple dispatcher.utter_message() . If I encounter again with same issue I will post the screen shot !

Thanks for replying !

@PalGitts, Please make sure to avoid \n\n . That is not working. If you use \n, everything will be OK.

Thank You ! @Arjaan, will keep that in mind !