The textual data in my text files are wrapping around ...

Posted on 2001-06-26
Last Modified: 2010-04-09
For the life of me, I cannot get this straightened out ...

A web page with several text files -- click on a link to a text file, it opens the file in the browser screen and it's  wrapping the text around and wherever there's a paragraph, it puts a little black box ascii code.

I've seen this before and I somehow think it has to be with the helper application being set to open any text file in Notepad.  I've been to Folder View and set it to use Wordpad but that isn't helping me at all!  

If I do open the text files directly from my hard drive using Wordpad, it displays okay but if I open any text file from my hard drive using Notepad, it wraps around.

The funny thing is, the other webservers open text files linked in an html doc just perfect, no wrapping around whether it opens in the browser screen or uses its external application (notepad or wordpad).

Someone help me, I want to launch this web page but this little bit of mess, which is now a big headache is preventing me from sending it out.

I know this should be simplistic as I've seen it before but no matter what I do (that is going into File View and setting a helper application is not helping me out here).

Question by:jamaica
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
  • +1
LVL 15

Expert Comment

ID: 6229093
Have you been editing the files on both a UNIX/Linux machine and a Windows machine?

I guess the answer is yes - because I've had this issue before.

Open file in Wordpad and save it (as plain text) - then don't edit the file on the UNIX box - see if that helps.


LVL 15

Expert Comment

ID: 6229101
If that doesn't make any difference then I would suggest editing the file, delete each carriage return and put the carriage return in again - I have had some strange problems with "invisible" (formatting) characters before and that was the only way I could resolve them.


LVL 53

Expert Comment

ID: 6229237
Even with unix/linux you can have a problem if you use Wordpad and cut and past into it from an rtf or doc, when you save as text, it will sometimes strip out all the linefeeds because of the other formatting codes.

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

LVL 53

Accepted Solution

COBOLdinosaur earned 50 total points
ID: 6229254
The fix is similar and labour intensive.  After saving it as text load it back into word pad and remove any remaning linefeed and fix anyformatting that got screwed up with tabs.

Then manually reformat, and save it as text again.

The way to avoid it in the first place is when you do cut and paste from rtf or doc, save as rtf and then reload and save as text.  I Wordpad as my primary editor for eveything and that seems to some the formatting problems most of the time.


Author Comment

ID: 6235787
I've been editing the files on UNIX machine.
I had these set of files on another unix machine and didn't end up in this line-feed problem.
I transferred the files from one unix box to another -- maybe that could be the reason why they came out with the line feed wrapping around.

I'll check into your suggestions and award points.

thanks for the quick responses.

Expert Comment

ID: 6246362
You could also use ftp to send files back and forth.  ftp knows all about <CR><LF> versus <LF> versus <CR> formats and translates accordingly.

If all else fails, I'll convert the files for you using a C program....

Author Comment

ID: 6260755
I've decided to split the points between COBOLdinosaur and a.marsh.

Your answers are the same and actually what I had thought of as well.

a.marsh answered first but COBOLdinosaur put more perspective to the answer. Therefore, he's getting the 25 pt award here.

a.marsh, I will make another post, which only *YOU* must respond to as *ANSWER* and I can award your points.

Thank you both for being so timely with providing feedback. Much appreciated.


Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Help with mod_substitute 18 74
Table style position to the left 8 37
How to get chosen background-color on every line? 10 42
CSS question 4 55
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question