Forums / General / Wierd behaviour, diff between debug or not

Wierd behaviour, diff between debug or not

Author Message

André R.

Monday 20 March 2006 9:25:18 am

While trying to output Xml_Block as a javascript value I found this issue:

code:

$image.data_map.caption.content.input.input_xml|nl2br()|trim()

Output 1 (How I need it):

Sentance 1..<br />Sentance 2..<br /><br />

Output 2:

Sentance 1..<br />
Sentance 2..<br /><br />

Same server, same ez install, just differnet site access.
Output 1 is from my dev siteaccess with most debug settings turned on and cache turned off.
I have cleared cache multiple times now, both in admin interface and by deleting cache folders.

ez: 3.7.4
php: 4.4.2

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

André R.

Tuesday 21 March 2006 1:38:58 am

This problem dissapeared when i updated from svn("3.7.5") yesterday.
and removing |trim() as |nl2br() does the trick.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom