Forums / Setup & design / where is the <br/> coming from?

where is the <br/> coming from?

Author Message

Michel Houtermans

Thursday 29 January 2004 12:18:09 pm

I have an line view override template that contains the following:

<div class="radar_trade_action"> - On {attribute_view_gui attribute=$node.object.data_map.date} you {attribute_view_gui attribute=$node.object.data_map.action} {attribute_view_gui attribute=$node.object.data_map.quantity} shares for {attribute_view_gui attribute=$node.object.data_map.price} (cost: {attribute_view_gui attribute=$node.object.data_map.cost})</div>

For what ever reason the {attribute_view_gui attribute=$node.object.data_map.action} creates an <br/> when the page is created. When I take this {...action} out the <br/> is not there.

Bug? or can I do something about this myself as I don't want a break in the text? I want a normal sentence.

Barney Gumble

Friday 30 January 2004 8:40:27 am

Michel, what class is the action attribute? I had a similar problem with <P> tags appearing some times and not others with xml textfields. To resolve the problem I found that when xml textfields were placed in their own table cell that the <P> tags were not used. Incidentally, I also found that the <P> tags were coming from a file called paragraph.tpl.

Failing that, how about constructing your sentence by concatenating a string together beforehand, and then displaying the string at the end?

Michel Houtermans

Friday 30 January 2004 12:26:48 pm

Hi, it is a selection (Buy, Sell). Buidling the sentence would work but this should work too. Luckily it is not critical so I can wait until this bug is fixed.

eZ debug

Timing: Jan 18 2025 18:33:33
Script start
Timing: Jan 18 2025 18:33:33
Module start 'content'
Timing: Jan 18 2025 18:33:34
Module end 'content'
Timing: Jan 18 2025 18:33:34
Script end

Main resources:

Total runtime0.8906 sec
Peak memory usage4,096.0000 KB
Database Queries194

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0071 588.8438180.8359
Module start 'content' 0.00710.7313 769.6797471.1719
Module end 'content' 0.73840.1522 1,240.8516333.5078
Script end 0.8906  1,574.3594 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00660.7413210.0003
Check MTime0.00150.1675210.0001
Mysql Total
Database connection0.00100.110210.0010
Mysqli_queries0.822192.30701940.0042
Looping result0.00220.24361920.0000
Template Total0.861496.720.4307
Template load0.00210.235920.0011
Template processing0.859396.474720.4296
Template load and register function0.00020.018610.0002
states
state_id_array0.00120.139610.0012
state_identifier_array0.00090.097020.0004
Override
Cache load0.00170.1940120.0001
Sytem overhead
Fetch class attribute can translate value0.00120.139930.0004
Fetch class attribute name0.00140.161630.0005
XML
Image XML parsing0.00050.050630.0002
class_abstraction
Instantiating content class attribute0.00000.000930.0000
General
dbfile0.00290.3271210.0001
String conversion0.00000.000830.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
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 8
 Number of unique templates used: 4

Time used to render debug report: 0.0002 secs