Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Outputting text


Reply

2 Posts   1111 Views

Avatar
r0ar

4 September 2008 at 11:10pm Community Member, 13 Posts

So I have a function which returns some text.

The text has returns in it.

So I call the function through the template and it returns the text.
But..
the text no longer has returns.
Can someone help please!!!
Is this a CSS issue?

Avatar
Willr

5 September 2008 at 3:44pm Forum Moderator, 5511 Posts

by returns do you mean new lines? if you want new lines you might need to return your text like this

return "this is a string\n with a new line inside it\n"