Jump to:

17452 Posts in 4473 Topics by 1971 members


SilverStripe Forums » Archive » Outputting text

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

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

Page: 1
Go to End
Author Topic: 1102 Views
  • r0ar
    Community Member
    13 Posts

    Outputting text Link to this post

    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.
    the text no longer has returns.
    Can someone help please!!!
    Is this a CSS issue?

  • Willr
    Forum Moderator
    5508 Posts

    Re: Outputting text Link to this post

    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"

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.