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...