Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility with Notepad (Windows) #100

Open
zevumara opened this issue Feb 8, 2019 · 10 comments
Open

Compatibility with Notepad (Windows) #100

zevumara opened this issue Feb 8, 2019 · 10 comments

Comments

@zevumara
Copy link

zevumara commented Feb 8, 2019

It seems that Left uses another type of line break than Notepad. It would be great if you can make Left compatible with the files created by the default text app of Windows

left and notepad

@zevumara
Copy link
Author

zevumara commented Feb 8, 2019

But the main issue appears when you want to share your text files created with Left to other people who don't have the app

@X-F0RCE
Copy link

X-F0RCE commented Mar 23, 2019

This may be the reason?

@frozenpandaman
Copy link

#61 seems related.

@neauoire
Copy link
Member

I cannot test this issue reliably on Windows, as I only have access to Linux and OSX.

@samyduc
Copy link

samyduc commented Jun 3, 2019

The issue is that Windows and Notepad in this case use "\r\n" as end of line character and linux uses "\n" (also known as CR LF vs LF). There is really no way around it. The weird format of what displays Notepad just means that the software does not recognize the end of line character, so everything is inline.

What could happen is Left to automatically convert end of line character based on the platform you are on when you save a file (and when you open).

It is an opinionated change.

@FernandoABava
Copy link

Try creating an empty file as .txt and then open it in left. I've been using it for a while and I think i've never come across that problem.

@doxanthropos
Copy link

Tried to replicate this on a fresh Windows 10 install.
Created a new file in Left, saved it (as test.txt) and opened it in Notepad.
Notepad automatically identified Unix line endings and displayed it correct:
Left-Notepad-Line-Endings
The link posted by @X-F0RCE suggests that this is something the MS people have been working on and have solved.

@neauoire
Copy link
Member

If someone else can confirm this, I will close the issue.

@Brin-o
Copy link

Brin-o commented Dec 18, 2020

I can confirm this issue does not happen on my machine. Windows 10 20H2

@Ryunam
Copy link

Ryunam commented Mar 15, 2022

This is not happening on my Windows 11 device either (OS build 22000.556).

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants