How to insert Blank Lines?
How do I add blank lines in messages?
e.g.
actually my question would be how to add a line break in skype chats. I have not been able to do that Adding \n to the line end gives me no line break Adding \n\n to the end of line, gives be a blank line like in here example 2. I would need to get smth like in here example 1, with just a simple line break. I am using "markdown" style in messages (I need to, since I need to parse hyperlinks)
@liiver
"\n\n" gives you example 2? That's odd. "\n\n" gives me example 1.
For instance, doing
session.send("Hello\n\nWorld!");
gives me
"Hello World"
i'm using C#, if that makes any difference but this is indeed the case for me
I'm using node. That makes sense. It could be a difference in the language implementations
End your sentence with two white-space and one \n. That would give you line break. For example
string response = "this is one line \n"; // Notice two white space before \n
response += "next line";
The break tag <br/> will also work.
2 space and \n should work. " \n next line"
@gplumb
I can confirm that using <br/><br/> produces a full, blank line (not just a line break).
However, <br> fails. It even spawned multiple runtime errors in my program.
So, to anyone reading this, you must include the "/" in <br/>.
Tested on:
- Node.js
- Skype
The above solution only works for Skype.
Therefore, I am re-opening this issue for the other platforms. I confirm that it doesn't work for <iframe> and SMS via Twilio.
similar to issue #920 and this should have the answer.
Also markup, e.g. <br/>, is only supported by Skype channel: https://github.com/Microsoft/BotBuilder/blob/c4dbb7183cc1c23837b6d6c8bc03fe8c54ba1f55/CSharp/Library/Microsoft.Bot.Connector/TextFormatTypes.cs#L22
I am using REST APIs in python. For me " \n \n" <2 spaces followed by \n followed by another 2 spaces and a \n> generates a response in next line "HELLO \n \nWorld" generates the following in SfB (not sure if its the same for Skype) HELLO WORLD
@Rohit573 two white-space and one \n worked for SKype for business. Do you know how do we send Bold, Italic text to Skype for business . As it does nor support markdown and html.
@ganesh1190 SfB is absolutely cold hearted. It converts every thing to plain text. No BOLD, ITALICS, etc. (worked on this 1.5 months ago)