My Subscriptions

No active or expired subscriptions. View Available Subscriptions

Advanced Search

Home arrow Forum arrow JCal Pro 1.5.xarrow 1.5.x General Discussionarrow "Cosmetic Bug" with nl2br
Pages: [1]
Print
Author Topic: "Cosmetic Bug" with nl2br  (Read 880 times)
pAnd0rA
Newbie
*

Karma: +0/-0
Posts: 8


View Profile
« on: February 26, 2007, 11:06:37 AM »

functions.inc.php Converts Linebreaks to <br />'s on line 835:
Code:
$string = nl2br($string);

This works perfectly, when you use a simple Textarea for Input - however, if you use a WYSIWYG Editor (like JCE), these normally already set Linebreaks, which results in nastly double-breaks.

I fixed it on my Site by documenting it out, but the proper way would probably be to query for the User's Editor and only apply nl2br, when there's no WYSIWYG-Editor.
Logged
illios
Newbie
*

Karma: +0/-0
Posts: 2


View Profile
« Reply #1 on: July 02, 2008, 08:15:08 AM »

Hello!
I do have the same problem but cannot find the mentioned code line.
Do have Jacal Pro RC 1.5.2

Any ideas what to do against double breaks?

It is very anoying!


Frank
Logged
illios
Newbie
*

Karma: +0/-0
Posts: 2


View Profile
« Reply #2 on: July 07, 2008, 05:04:53 AM »

Still no solution found...

You cansee the effect here:
http://www.schule-der-geistheilung.de/terminkalender/148.html

And it goes on:
Go on "Suchen"(search), add "Suhl" and take a look. The 1st 2 posts are edited in JCal. Compare them to the others, not in JCal edited posts (The list should look like the non edited posts)!

What can be done?


Logged
Pages: [1]
Print
Jump to:  

Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Joomla Bridge by JoomlaHacks.com

Original Joomla Template design by RocketTheme ( Conversion by Bloc)