About newline in WeChat public platform development !!!!

Source: Internet
Author: User
About newline in public platform development !!!! First of all, I am developing a public platform and then encountering text that requires line breaks. I have many articles on Baidu that use "\ n, but what I want to achieve is that there is an empty line between the two lines of text, then use "\ n", however, the text returned by the mobile phone does not have a gap between the two lines of text ....

Please ....

Paste the code and Image:
/*** Display help information ** @ return help text */private function help () {$ text = "Hello, here is the beautiful creative logo Co., Ltd, please reply to the number selection service: \ n "; $ text. = "1 -- signage \ n"; $ text. = "2 -- sculpture art NEWS \ n"; $ text. = "3 -- brand design NEWS \ n"; $ text. = "4 -- weather info query \ n"; $ text. = "5 -- about the Author \ n"; $ text. = "reply"?" Show this help menu \ n "; return $ text ;}



Reply to discussion (solution)

There is a blank line in the middle of "select service:" and "1 -- signage Information". I wrote "\ n" in the code, however, the effect is not displayed...

Android 4.0 for my system

In this way, I can return empty rows ..
I don't know what is going on, but there is no need to add spaces.
Do you want to add an & nbsp between \ n for a try?

In this way, I can return empty rows ..
I don't know what is going on, but there is no need to add spaces.
Do you want to add an & nbsp between \ n for a try?

Will directly output .... How did you do it?

Try \ r \ n ....

Try \ r \ n ....

Well, O (operator _ operator) O haha ~ I don't know what will happen on Apple...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.