About the issue of line-wrapping in the development of WeChat public platform!

Source: Internet
Author: User
On the public platform development of the problem of line!!!!
First of all, I am doing public platform development, and then meet the need to wrap the text, I have Baidu has a lot of articles are said to use "\ n" can be, but I want to achieve is two lines between the text will have a blank line, that use "\ n", but the text returned by the phone does not appear between the two lines of text

Ask the great God ....

Post Code and pictures:

/**
* Display Help information
* @return return Help information text
*/
Private Function Help () {
$text = "Hello, here is the beauty of Creative Signage Logo Co., Ltd., please reply to the Digital choice service: \ n";
$text. = "The mark of the signs information \ n";
$text. = "2--sculpture art information \ n";
$text. = "3--brand design information \ n";
$text. = "4--weather information query \ n";
$text. = "5--about author information \ n";
$text. = "Reply"? " Display this Help menu \ nthe ";
return $text;
}


Share to:


------Solution--------------------
That's what I did. A blank line can be returned.
Don't know what's going on but there's no need to add a space.
Would you like to have a try between \ nthe?
------Solution--------------------
Use \ r \ n to try ....
  • 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.