It sounds like your whitespace isn't being preserved. Can you do a "View Source" and see whether it is appearing okay in the source and just not displaying correctly?
Main Topics
Browse All TopicsHi,
I have a simple .txt file online that I use when users are submitting data to me from my webpage via email (pretty simple stuff). One of the sections of the .txt file has the following:
TECHNICAL/FOCUS:
Group,GroupRating,GroupYrs
[Focus1],[FocusRating1],[F
[Focus2],[FocusRating2],[F
[Focus3],[FocusRating3],[F
[Focus4],[FocusRating4],[F
SOFTWARE/PACKAGES:
Group,GroupRating,GroupYrs
[Package1],[PackageRating1
[Package2],[PackageRating2
[Package3],[PackageRating3
[Package4],[PackageRating4
**************************
Now on the TECHNICAL/FOCUS SECTION I get back what I expect:
Group,GroupRating,GroupYrs
ERP,Expert,12.5
Business Intelligence, Average,3.0
etc...
BUT, on the SOFTWARE/PACKAGES SECTION, I don't get a character return between rows. It just gives me the first row, then a space and then the second row starts and so on. Needless to say, this is confusing to look at.
What is causing it to see the carriage return in the first instance and NOT see it in the second?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: b0lsc0ttPosted on 2007-07-24 at 16:42:42ID: 19561089
Is the result above as it appears in a text editor (i.e. Notepad) or in a browser?
What is the code that either creates (if text editor) or shows (if browser) the content?
Basically the problem could be the first section using a carriage return and line feed character and the other section just using a line feed character. Depending on where the problem appears the solution could be a few different things.
If the server is used to make or show the file then what server language do you use? If it is an issue as it appears in a browser then which browser? Can you provide a link or upload the file?
Let me know how this helps or what additional info you need.
bol