I have a Sinatra application and a method
get '/page123' do
"string1\nstring2"
end
If I go to '/page123', I’ll see only one string of string1 string2 without line break between them.
How do I show them as
string1
string2
?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Since a
<br>tag doesn’t seem to work for you, try this: