Hi Jose,

Rather than attempting to add a line break into the DRI (which I'm not 
sure is easy to do or even possible), why not just do this via CSS?

For example, you could use CSS to add extra padding/margin *after* a 
particular element in the final XHTML.  This would appear like a linebreak.

So, to do that, you'd need to determine which XHTML element(s) you want 
to have that extra space after, and then write the appropriate CSS.

If it's a single element, you may want to use it's XHTML "id" attribute 
(if it doesn't have an ID, you can add one via the DRI "id" attribute). 
For example, if "id=my_id" you'd have this CSS:

#my_id { padding-bottom: 10px; }

If it's multiple elements, you may want to assign an XHTML "class" to 
them. (You can add a specific "class" either via your Theme or by using 
the DRI "rend" attribute). For example, if a bunch of elements all have 
the same "class=my_class", you'd have this CSS:

.my_class { padding-bottom: 10px;}

Essentially, as much as possible it is better to put the *formatting* 
into your Theme (either in CSS or XSLT).  Trying to add specific 
formatting (extra spacing, etc) to DRI is not going to be easy, as DRI 
is meant to try and be formatting agnostic (which allows you the ability 
to fully control the formatting in your Theme).

I hope that helps some.

- Tim


On 10/3/2012 10:50 AM, Jose Blanco wrote:
> Does any one have any suggestions for this problem.
>
>
>
> On Fri, Sep 28, 2012 at 1:06 PM, Jose Blanco <[email protected]
> <mailto:[email protected]>> wrote:
>
>     I have
>             List identity = form.addList("identity",List.TYPE_FORM);
>
>     I would like to add a line break like this:
>             identity.addItem().addContent("  ");
>
>     But since the item just contains spaces, there is no line break. If
>     I add "123", I get the line break but also the 123.  How can I just
>     add a line break?
>
>     -Jose
>
>
>
>
> ------------------------------------------------------------------------------
> Don't let slow site performance ruin your business. Deploy New Relic APM
> Deploy New Relic app performance management and know exactly
> what is happening inside your Ruby, Python, PHP, Java, and .NET app
> Try New Relic at no cost today and get our sweet Data Nerd shirt too!
> http://p.sf.net/sfu/newrelic-dev2dev
>
>
>
> _______________________________________________
> DSpace-tech mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>

------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to