Login | Forgot password | Register

X

What is OpenID?

OpenID is an Internet-wide identity system that allows you to sign in to many websites with a single account.

With OpenID, your ID becomes a URL (e.g. http://username.myopenid.com/). You can get a free OpenID for example from myopenid.com.

For more information visit the official OpenID site.

Jump to:

17478 Posts in 4473 Topics by 1972 members

Archive

SilverStripe Forums » Archive » Outputting text

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

Page: 1
Go to End
Author Topic: Outputting text 447 Views
  • r0ar
    avatar
    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.
    But..
    the text no longer has returns.
    Can someone help please!!!
    Is this a CSS issue?

  • Willr
    avatar
    Moderator
    2716 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"

    447 Views
Page: 1
Go to Top

Currently Online: AnthonyP, Euphemismus, dotperinch

Welcome to our latest member: Jules

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

Comments on this website? Please give feedback.