Gossamer Forum
Home : Products : Gossamer Links : Discussions :

How to translate blank lines in description and other fields into <br>

Quote Reply
How to translate blank lines in description and other fields into <br>
Hello,

When some people are kind enough to properly format their description field and other fields for that matter with proper paragraphs and what not. Links just sort of globs it all into one large paragraph making it pretty much unreadable to me.

What do I have to do so that when somebody hits the enter key to create a new paragraph when entering data into Linksq, so that line break stays there after publishing it?

I've got a couple large text fields that need this sort of formatting so that they don't end up as large globby one paragraph.

Thanks for your time.
Quote Reply
Re: [Westin] How to translate blank lines in description and other fields into <br> In reply to
Hi,

Sounds like you need my free ULTRAGlobals plugin (linked in my sig). Look for the NL_2_BR function ... simply call with:

<%Plugins::ULTRAGlobals::NL_2_BR($Description)%>

..and it will convert newlines into <br />

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] How to translate blank lines in description and other fields into <br> In reply to
Thanks Andy,

I remember this plugin (not the whole globals but the NL_2_BR because I asked for this under my old account which I don't have username/password or access to old email anymore and knew it had to be floating around somewhere.

Looks like a tremendous plugin.
Quote Reply
Re: [Westin] How to translate blank lines in description and other fields into <br> In reply to
Ya, that plugins got quite a lot of cool functions in it :) (I use it all the time, as it saves having to re-write/find globals to use on the forum, which were written ages ago :))

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!