Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Retaining hard returns in job description
rollo
Is it possible to retain hard returns in the job description (iw_desc)? $job->GetDescription() returns the paragraph as one long line. I've tried changing the 'wrap' attribute in the textarea tag but no luck. Generic textareas seem to have the same problem. Hopefully I'm missing something obvious?
Thanks
Phil
iwserver: 5.5.2 Build 10716 Interwoven 20020811 (Unix)
Find more posts tagged with
Comments
rollo
To clarify (perhaps I was not clear), 'return' = newline (carriage return, linefeed, etc - the result of hitting the enter key).
So when a workflow creator types a description like this (that I just made up):
Insert the following lines in the bulleted list:
adds value to the bottom line
improves ROI by 50%
enables increased user interaction by facilitating better information flow
It comes out like:
Insert the following lines in the bulleted list: adds value to the bottom line improves ROI by 50% enables increased user interaction by facilitating better information flow
Imagine if there were 25 bullets - you'd spend a long time picking the block of text apart.
My current solution is to transform any two subsequent space characters to a <p> tag. Elegant, huh. I shoehorned a JS alert box into the label explaining the workaround - that is, press enter twice to force a new line - to workflow creators.
I guess everyone else who uses TS must insist that their users put in very short descriptions with no formatting. Or maybe this is a problem that only occurs on our system.