Forums / General / Line breaks in XML text areas

Line breaks in XML text areas

Author Message

Dries Samyn

Wednesday 30 June 2004 3:53:02 am

Weird problem.
I am using eZ Editor for the XML areas, and I noticed that sometimes their would be a linebreak (<br />) inserted when adding an object (link to related page in this case).
I turned off the editor, and I noticed that it's actually when saving the page (Send for publishing), the system sometimes adds a linebreak to the text. For example:

my text blah <object ...

would, after publishing and editing again have become:

my text blah
<object ...

This seems to happen on specific placed in the content, not with specific object.

The only other thing I have noticed is twice the following warning when accessing the form:

Missing argument 1 for edittemplatesuffix() in c:\...\kernel\classes\datatypes\ezxmltext\ezxmlinputhandler.php on line 176

I am using version 3.4

This seems like a small bug, but it is a really annoying actually because the pages look weird. Does anybody have any ideas about what causes this?

Ekkehard Dörre

Wednesday 30 June 2004 4:06:16 am

In
design/standard/templates/content/datatype/view/ezxmltags/object.tpl

you can change block into inline view.

Greetings, ekke

http://www.coolscreen.de - Over 40 years of certified eZ Publish know-how: http://www.cjw-network.com
CJW Newsletter: http://projects.ez.no/cjw_newsletter - http://cjw-network.com/en/ez-publ...w-newsletter-multi-channel-marketing

Dries Samyn

Wednesday 30 June 2004 4:15:57 am

That's not the problem. It's showing the objects inline, it's just sometimes adding a linebreak and sometimes it's not (even in the same field).

Dries Samyn

Thursday 01 July 2004 8:04:40 am

I still haven't found a solution to this. Has anybody any suggestions?
Or even where I should start looking? It must be while saving the data (submiting the form) that the line break must be added. I don't know where though.

Thanks,

Dries.

Dries Samyn

Friday 02 July 2004 8:55:35 am

Come on ;)
Anybody of the eZ crew? Surely I can't be the only person that experience this bug?

Dries Samyn

Tuesday 06 July 2004 4:36:43 am

Am I really the only person that has this problemn? I swear, the system is adding a line break while saving the XML field data to the DB.
And the warning above must indicate there is some kind of bug??

Dries.

eZ debug

Timing: Jan 31 2025 01:15:30
Script start
Timing: Jan 31 2025 01:15:30
Module start 'content'
Timing: Jan 31 2025 01:15:30
Module end 'content'
Timing: Jan 31 2025 01:15:30
Script end

Main resources:

Total runtime0.2241 sec
Peak memory usage8,192.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0093 587.9219370.3047
Module start 'content' 0.00930.0163 958.22661,005.6094
Module end 'content' 0.02560.1984 1,963.83593,894.6875
Script end 0.2240  5,858.5234 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00512.2615200.0003
Check MTime0.00150.6751200.0001
Mysql Total
Database connection0.00070.329810.0007
Mysqli_queries0.112950.40171410.0008
Looping result0.00160.73061390.0000
Template Total0.197988.310.1979
Template load0.00090.407410.0009
Template processing0.196987.894710.1969
Override
Cache load0.00060.283510.0006
Sytem overhead
Fetch class attribute can translate value0.00200.913110.0020
XML
Image XML parsing0.00020.107010.0002
General
dbfile0.01235.4924200.0006
String conversion0.00000.004530.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0002 secs