cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robby Pelssers, AGP" <robby.pelss...@agp.nl>
Subject How to get rid of unwanted white-space when using jx:forEach loop
Date Tue, 10 Oct 2006 10:15:17 GMT
 
Hi all,

I'm building up a tree (Eclipse Style: see below) and to visualize e.g.
lines 6 and 8, my macro does something like

<jx:forEach begin="0" end="${indentationLevel}" step="1">
  <jx:choose>
    <jx:when test="${drawVerticalLine}">
      <img src="verticalLine.gif"/>  (16px * 16px)   
    </jx:when>
    <jx:otherwise>
      <img height="1" width="16"/>  
    </jx:otherwise>
  </jx:choose>
<jx:forEach> 

Line1 :          root 
Line2 :          00|
Line3 :          00--- folder 1
Line4 :          00| 
Line5 :          00--- folder 2
Line6 :          00|0000000|
Line7 :          00|0000000--- file 1
Line8 :          00|0000000|
Line9 :          00|0000000--- file 2 
Line10:          00|
Line11:          00--- folder 3

My problem is that white spaces appear between the images so that I get a
screwed up tree... :-(  So what I would like is that only for that forEach
loop no white spaces are serialized to html. Somebody else already who
struggled with this issue and has a solution??

Cheers,
Robby





         


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message