That's what I said.PeterH wrote: And for windows a line doesn't need CRLF as line ending, but CRLF is the move to a new line: and then it's there and counted, even if empty.
Text Preview line count
Forum rules
You might want to read this if you're looking for priority service
Please Include The Following Information
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).
Use Your Profile Or Signature
We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.
How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
You might want to read this if you're looking for priority service
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).
We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
-
Marco
- Posts: 2354
- Joined: 27 Jun 2011 15:20
Re: Text Preview line count
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]
Don sees all [cit. from viewtopic.php?p=124094#p124094]
-
PeterH
- Posts: 2830
- Joined: 21 Nov 2005 20:39
- Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%
Re: Text Preview line count
Yes.Marco wrote:That's what I said.PeterH wrote: And for windows a line doesn't need CRLF as line ending, but CRLF is the move to a new line: and then it's there and counted, even if empty.
I'm afraid it doesn't seem to help.
So at least I tried to explain how to visualize it, for example with the windows editor.
-
dewcansam
- Posts: 18
- Joined: 18 Oct 2012 05:10
- Location: USA FL
Re: Text Preview line count
You know what you gave yourself away when you said that "the line count shows 2". This indicates that you are looking at a TEXT file and NOT a binary file which you indicate that it could be. If you were looking at binary file then you would have stated that you were looking at the offset. XY's raw view is to interpret the file as it is.rd7770 wrote:Using Preview to look at a DOS file of just one line (one character, followed by a CR and LF), the line count shows "2" where it normally would be regarded as "1". E.g. Unix's wc reports it as one line.
Every editor that I have opened a test file with, after pressing the enter key, increments the line count. Even if it is a blank line. They ALL show 2 lines.
I created 3 test files.
First is nul and XY's raw view show it as "File is empty."
Second is one char "1" and XY's raw view shows 1 line
Third is one char "1" and a CRLF and XY's raw view shows 2 lines
All is exactly the way it should be.
XYplorer user since 2008-08
How can you avoid confusion when a dates have at least six different interpretations around the world?
A notation like 01/02/03 could mean 1 Feb 2003 or 2 Jan 2003 or 2 Mar 2001.
Welcome to clarity - ISO 8601
How can you avoid confusion when a dates have at least six different interpretations around the world?
A notation like 01/02/03 could mean 1 Feb 2003 or 2 Jan 2003 or 2 Mar 2001.
Welcome to clarity - ISO 8601
-
admin
- Site Admin
- Posts: 67315
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
XYplorer Beta Club