Extra spaces between lines in list

General comments and questions. Technical support.
Carol
Posts: 10
Joined: Fri Aug 19, 2011 9:08 am

Extra spaces between lines in list

Post by Carol »

I generate a txt list from my art program and it opens in Atlantis. Now it started putting in an extra space between the lines. It is set for single line spacing. I have been over all the settings & can't see what has changed.

Any suggestions greatly appreciated.
Carol
Robert
Posts: 1900
Joined: Fri Aug 15, 2003 8:27 pm

Post by Robert »

Hi Carol,
As I understand things, you have a pure text file (with a “.txt” extension) that you open in Atlantis. This text file is actually a list of items, separated by empty paragraphs. You want to remove the empty paragraphs. Here is how to:

1. Select the whole list.
2. Press "Ctrl+H".
3. In the "Find" box, enter “^p^p” (without the quote marks).
4. In the "Replace With" box, enter “^p” (without the quote marks).
5. Press the “Replace All” button.

HTH.
Cheers,
Robert
Carol
Posts: 10
Joined: Fri Aug 19, 2011 9:08 am

Post by Carol »

Thanks, Robert.

As this works fine it a pain to have to do it everytime I use it.
It used to make the list with no extra spaces between the lines automatically. Something has changed. I even tried reinstalling it and that didn't help.

Carol
andygrunt
Posts: 230
Joined: Mon Jul 23, 2007 12:35 pm

Post by andygrunt »

It sounds like your ‘art program’ is adding the extra returns.

If you open the text file you get from the art program in Windows Notepad and the extra lines are there, it proves the art program is adding the spaces for some reason and that’s where the trouble lies.
Robert
Posts: 1900
Joined: Fri Aug 15, 2003 8:27 pm

Post by Robert »

Hi Carol,
You could open your “.txt” files in “Notepad2” (http://www.flos-freeware.ch/notepad2.html), then click “Edit | Block > Remove Blank Lines”, or even more simply, press the corresponding hot key, i.e. “Alt+R”. This would remove all blank lines from your lists. You can then copy/paste the clean versions into Atlantis.

Alternatively, you could use “Notepad++” (http://notepad-plus-plus.org/download/v5.9.3.html), and click “TxtFX | TxtFX Edit > Delete Blank Lines”.

Note that both Notepad2 and Notepad++ are freeware.

HTH.
Cheers,
Robert
Carol
Posts: 10
Joined: Fri Aug 19, 2011 9:08 am

Post by Carol »

Andy, I did try generating the list in Wordpad and Notepad & it was fine.

Robert, I guess I will try one of the other programs that you suggested.
It's just that I liked this one because of all it's feature.

Thank you both for your help.
Carol
Robert
Posts: 1900
Joined: Fri Aug 15, 2003 8:27 pm

Post by Robert »

Carol, we could help more if you told us which “art program” you are using, and what exactly you mean when you say you “generate lists from it”.

Same thing with Wordpad and Notepad: how exactly do you “generate lists from them”?
Carol
Posts: 10
Joined: Fri Aug 19, 2011 9:08 am

Post by Carol »

I am using ACDSee to generate the lists. I highlight whatever items I want in the list and press Generate File List. It then opens the default text viewer with the list.

Wordpad & Notepad do not generate the lists. ACDSee opened them to view the text. They work perfectly only I want a few more features.

Carol
Robert
Posts: 1900
Joined: Fri Aug 15, 2003 8:27 pm

Post by Robert »

As I now understand things, ACDSee generates lists and displays them in whichever editor is associated with “.txt” files on your system.

What you could do is save these “.txt” files from Wordpad or Notepad, then open them in Atlantis. If these “.txt” files display without blank lines in Wordpad or Notepad, they will display in the same way in Atlantis.
andygrunt
Posts: 230
Joined: Mon Jul 23, 2007 12:35 pm

Post by andygrunt »

Or maybe just copy/paste from notepad into Atlantis.
Carol
Posts: 10
Joined: Fri Aug 19, 2011 9:08 am

Post by Carol »

Seems a shame I now have to use 2 programs to do what Atlanis
used to do alone. ACDSee would open it & the text it would be in the correct format & I was done in a flash & on to more lists.

Your first tip on removing the empty paragraphs worked and will be the fasted route to go, I believe.

Thanks again,
Carol
Carol
Posts: 10
Joined: Fri Aug 19, 2011 9:08 am

Post by Carol »

I just realized my output has these symbols at the beginning - ÿþ.

Any idea what it means & how to make it stop?
Robert
Posts: 1900
Joined: Fri Aug 15, 2003 8:27 pm

Post by Robert »

If there aren’t any privacy concerns, could you please generate one of these lists, save it to your hard drive, then attach the resulting file to a post in this thread so that we can have a look at it.
Carol
Posts: 10
Joined: Fri Aug 19, 2011 9:08 am

Post by Carol »

I have attached an example.
Attachments
Example.txt
(781 Bytes) Downloaded 792 times
Robert
Posts: 1900
Joined: Fri Aug 15, 2003 8:27 pm

Post by Robert »

I was unable to download “example.txt”. All I got was a new browser page displaying some Chinese text. Is your file a Chinese text?
Carol
Posts: 10
Joined: Fri Aug 19, 2011 9:08 am

Post by Carol »

No it isn't in Chinese.
I couldn't download it either but it did work with
Right click & Save Target As.
Robert
Posts: 1900
Joined: Fri Aug 15, 2003 8:27 pm

Post by Robert »

Hi Carol,
Your sample file opens in the same way in most editors (Wordpad, Notepad, Programmer’s Notepad, Notepad++, Notepad2), and in MS Word 2007 too, i.e. it seemingly displays East-Asian characters. Atlantis does a better job of it: it opens it almost correctly, except for the first two extra characters.

This is because the native encoding of that file is “UTF-16 Little Endian” (or “UCS-2 Little Endian”) with UNIX line endings (LF). It is a most unusual file format for a file meant to be displayed on a Windows system in a Windows application.

In short, Windows applications have trouble displaying such files because they are encoded in a wrong format for a Windows system.

If at all possible, you should make sure that ACDSee generates your lists in a proper Windows format ("ANSI", "Unicode", "UTF-8").

HTH.
Cheers,
Robert
Carol
Posts: 10
Joined: Fri Aug 19, 2011 9:08 am

Post by Carol »

I generated this same file in Wordpad, Notepad, Notepad++, and in MS Word 2007 from ACDSee & they all did it correctly. No odd characters at the beginning or extra spaces between lines.
The only format setting I can see in ACDSee is set to Western.

I'll try the ACDSee forum & see what they say now that I have an idea what I am looking for.

Thanks,
Robert.
Robert
Posts: 1900
Joined: Fri Aug 15, 2003 8:27 pm

Post by Robert »

If Wordpad, Notepad, Notepad++, and MS Word 2007 correctly display the files that ACDSee temporarily opens in them, how come these files display wrongly in the same applications when they have been saved to your hard disk? The file you attached to your post does not display correctly in either Wordpad, Notepad, Notepad++, or MS Word 2007. Word 2007 does display “Example.txt” correctly (at least in the same way as Atlantis) when we specify that it IS a Windows file. The file native encoding is not a Windows standard encoding.
Robert
Posts: 1900
Joined: Fri Aug 15, 2003 8:27 pm

Post by Robert »

When you save a text file from Notepad, you specify file name and type (i.e. “*.txt” text file). But the Notepad “Save As” dialog includes an additional setting, that of the file “Encoding”: you can choose between “ANSI”, “Unicode”, “Unicode big endian”, and “UTF-8”. Whenever you save an English text file, please make sure that “ANSI” or “Unicode” is selected.
Post Reply