Paragraphs not showing

ugly 12 Feb, 2010
I paste my articles from word into a text area within my form and upload. My problem is that I am losing my paragraphs and the article merges into a single block.
If I use this it inserts <br /> where paragraphs end.
$articletext = nl2br($articletext);
I then tried to use this in conjuction with

$articletext = str_replace("\n","<br/>",$articletext);

I sort of end up with two <br></br> clustered together. My question is how can I get the paragraph spacing I need?
GreyHead 12 Feb, 2010
Hi ugly,

I've no idea - but there are a couple of other threads about the same question in the forums here. You may find something useful there.

Bob
ugly 12 Feb, 2010
Thanks Bob will have a scout around. In the process of pasting from word to the chronotext area how does the para get interpreted by the chrono code?
GreyHead 12 Feb, 2010
Hi ugly,

It's pulled out of the $_POST array with
$post = JRequest::get( "post" , JREQUEST_ALLOWRAW );
and then saved to the database using the standard Joomla db save code.

So ChronoForms does next to nothing.

Bob
This topic is locked and no more replies can be posted.