botframework-sdk icon indicating copy to clipboard operation
botframework-sdk copied to clipboard

Newline in string not working C#

Open inornos opened this issue 10 years ago • 7 comments

Newline in string not working C# what i do help me

Problematic image image

i want this image

inornos avatar Jul 06 '16 10:07 inornos

Yes this would really helpful. Even i tried with the markdown options given in the link. Since the bot docs it is given as text property is markdown

b4usat avatar Jul 06 '16 11:07 b4usat

I have found that if I use a StringBuilder and do the following, it works

sb.AppendLine(myText);
sb.AppendLine("");
db.AppendLine(otherText);

DavePilks avatar Jul 06 '16 11:07 DavePilks

To create a line break in markdown you have to end a line with two spaces. Take a look at the sample on Wikipedia: https://en.wikipedia.org/wiki/Markdown

berhir avatar Jul 06 '16 11:07 berhir

Let is know if that does not work for you.

chrimc62 avatar Jul 07 '16 03:07 chrimc62

Its not working for me, In Microsoft Bot Framework Emulator it working fine but when i upload on web for final check and try on the skype its same as before its not working in skype Please help me what i do

inornos avatar Jul 08 '16 10:07 inornos

@inornos hey! '\n' works when i deployed it on skype. However in emulator two spaces gives a new line.

jayasuryajeyakodi avatar Oct 22 '16 15:10 jayasuryajeyakodi

<br/> works for me in emulator

akontsevich avatar Jun 28 '17 06:06 akontsevich