Link to home
Start Free TrialLog in
Avatar of gazdzid
gazdzidFlag for United States of America

asked on

Formating reports retun as entered

When I populate an html field with text  now for example

    I hit enter 2 times you can see the white space

My report is as follows:
When I populate an html field with text  now for example I hit enter 2 times you can see the white space

I want my report to show the white space.  Di I need to run the field through some kind of JS or class.  I am generating the report from a jsp pulling from oracle.
ASKER CERTIFIED SOLUTION
Avatar of rrz
rrz
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of slightwv (䄆 Netminder)
slightwv (䄆 Netminder)

The PRE tag is the preferred way but if you cannot use it for some reason you can always do a string replace in the Oracle call to replace the CR/LF with <br/>
Avatar of gazdzid

ASKER

can you tell me the cause when using wrap within the tags as seen below gives a warning

" Iwak0043E Undifined attribute name (wrap)."

<textarea name="CONTACT_ADDR_DESCR" id="CONTACT_ADDR_DESCR" onchange="trim('CONTACT_ADDR_DESCR', this.value)" cols="70" rows="3" wrap="hard" onkeydown="limitText(this.form.CONTACT_ADDR_DESCR,this.form.countdown,2000);" onkeyup="limitText(this.form.CONTACT_ADDR_DESCR,this.form.countdown,2000);"  >Location Specific - Directions</textarea></td>
            </tr>
Which browser are you using ?
The wrap attribute is not standard HTML.  Did you try leaving it out ?  
There might be a way to do it with CSS.  You could ask at  
https://www.experts-exchange.com/Developer/Web_Development/Web_Languages-Standards/CSS/
Avatar of gazdzid

ASKER

rrz@871311:
I did try leaving it out and added  <pre> to the report.  I received the same warning.  Then I duplicated the field outside of the <table> the warning went a way.  can I have pre inside of a table?
Avatar of gazdzid

ASKER

Hey thanks it works!!
>can I have pre inside of a table?  
Yes.  Thanks for the points.