Forums / Setup & design / where is the <br/> coming from?
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?
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.