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.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 21:05:48
Script start
Timing: Jan 18 2025 21:05:48
Module start 'layout'
Timing: Jan 18 2025 21:05:48
Module start 'content'
Timing: Jan 18 2025 21:05:49
Module end 'content'
Timing: Jan 18 2025 21:05:49
Script end

Main resources:

Total runtime1.0274 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0044 587.9141152.6250
Module start 'layout' 0.00440.0022 740.539139.4453
Module start 'content' 0.00671.0187 779.9844466.0938
Module end 'content' 1.02540.0020 1,246.07818.1641
Script end 1.0274  1,254.2422 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.3516160.0002
Check MTime0.00150.1494160.0001
Mysql Total
Database connection0.00060.055310.0006
Mysqli_queries0.986496.0091570.0173
Looping result0.00060.0572550.0000
Template Total0.999297.220.4996
Template load0.00230.227120.0012
Template processing0.996897.018720.4984
Template load and register function0.00010.013610.0001
states
state_id_array0.00070.063810.0007
state_identifier_array0.00120.115420.0006
Override
Cache load0.00190.1863120.0002
Sytem overhead
Fetch class attribute can translate value0.00050.052020.0003
Fetch class attribute name0.00110.105030.0004
XML
Image XML parsing0.00020.022920.0001
class_abstraction
Instantiating content class attribute0.00000.000730.0000
General
dbfile0.00070.0702100.0001
String conversion0.00000.000640.0000
Note: percentages do not add up to 100% because some accumulators overlap

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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 8
 Number of unique templates used: 4

Time used to render debug report: 0.0001 secs