Need More Detail in Paragraph Marks

Ideas for new features

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply

Would you like to know if a paragraph has a CRLF, CR or LF

Yes - Important
2
29%
Dont Care
3
43%
Yes - Not Too Important
2
29%
 
Total votes: 7

datajive
Posts: 1
Joined: Thu Sep 08, 2005 5:44 pm

Need More Detail in Paragraph Marks

Post by datajive »

I often edit data files using TP that dont have a "normal" paragraph ending (CR, LF).

I am intreseted in knowing if there is both a Carrage Return (CR, x0D) and Line Feed (LF, x0A) or just one or just the other at the end of a line.

Maybe using a diffrent character than ¶ or something.

EXAMPLE
Some line with a normal ending¶
Some line with just a carrage return[0D]
Some line with just a line feed[0A]
Another line with a normal ending¶
ben_josephs
Posts: 2461
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

You can see the line endings, although not in the most convenient form, if you open the file in binary mode (File format: Binary). You can even view the file in text and binary form simultaneously in two windows.

If all you want to do is unify the line endings, you can simply Save As with File format: <Whichever you need>.

Added later: You can make a quick check on the type of line endings a file has by looking at its properties (View Document Properties or Alt+Enter; under the Document tab). The File type will be UNIX, PC, Mac or Unknown. It's Unknown if it has more than one type of line ending.
bveldkamp

Post by bveldkamp »

And, depending on how good your eyes are, you can check if a line ending is LF or LF+CR by pressing Shift+Down, and see if at the end of the selected line there is room for one or two characters. (It's pretty clear if you have "View | Visible spaces" checked)
ben_josephs
Posts: 2461
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

Thanks for that!

I'd noticed a variation in the width of the highlight beyond the end of the line, but it never dawned on me what it signified (probably because I only use CRLF line endings when they're unavoidable).

(The PC standard is CR+LF, not LF+CR. CR+LF is, of course, better, because it allows the Teletype to start slowly feeding the paper up one line while the carriage is still even more slowly returning. :-) )
Post Reply