This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSP and the fly likes Help!!  Double Spaced when page is saved?!?! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Help!!  Double Spaced when page is saved?!?!" Watch "Help!!  Double Spaced when page is saved?!?!" New topic
Author

Help!! Double Spaced when page is saved?!?!

rich werth
Ranch Hand

Joined: Sep 21, 2001
Posts: 57
I don't know if I'm posting to the right forum(or if there is a right forum for this)
But....
I have a jsp page that when loads is fine, it's single spaced like it is supposed to be. When the user saves the page everything on the page is double spaced in the source. There are no extra tags being added.
This page comes from Websphere 3.5. The data comes from Oracle. The double spacing happens in IE and Netscape. There is no double spacing if I say view source and copy and paste the source to notePad and then say save and name the file something.html.
Any clues?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60800
    
  65

Sounds like a line termination issue to me. Unix, Windows and Macs all use different conventions to terminate lines in a text file (\n, \r\n, and \r respectively if memory serve me correctly, which it rarely does).
I guess I'd want to know: since this manifests itself just in the source HTML and doesn't affect the page rendering, why is it an issue?
hth,
bear


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
rich werth
Ranch Hand

Joined: Sep 21, 2001
Posts: 57
Hi
Issue is this. The program builds Benefit Summaries for an HMO. These summaries need to be saved and printed later. But if they are double spaced it doesn't look as good. The strange thing is that everything is double spaced in the source after a save but before the save everything is fine.
so
before save it looks liek this
htmltag
htmltag
after save it looks like this
htmltag
htmltag
save with the actual text
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Help!! Double Spaced when page is saved?!?!
 
Similar Threads
Problem with saving HTML page doubleSpace?
Coding conventions
Java Double cannot be dereferenced
Using a method from one program to work in another by importing
I want to import single-spaced code