-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Surprisingly, line endings vary by OS.. #2097
Comments
I expect that many Windows users prefer the current behavior. But it would be interesting to find out. I suggest that you raise this as a discussion item on pandoc-discuss, and once you get some feedback there, it may be appropriate to move to a more determinate suggestion on this tracker. It would also be helpful to know what version of pandoc you are using, and what ouput format(s) you are noticing this in. |
@jgm I will post on the list... being a multi-OS developer, anything that changes the line endings of an input file is a source of annoyance. But the thing that is the most annoying is to have a behavior that varies on each OS... giving inconsistent results. I use the prebuilt binaries you provide for 1.13.2 . Most of the conversions are from anything to plain . I use pandoc to decruft any markup to plain text. |
@pombreda it took me ages to figures the simplest of things -- line endings. I am in agreement with you, it would be nice to have the ability to have uniformity in line endings across systems. I am currently running everything through |
I agree that allowing the user to override the default EOL character would be a useful option. |
I've made a formal feature request: #3663. |
I have a question: I'm writing a custom tool to normalize all EOLs to Are there any real chances that in some OSs' pandoc will use |
+++ Tristano Ajmone [May 14 17 02:27 ]:
I have a question:
I'm writing a custom tool to normalize all EOLs to LF. It will convert
all CRLF occurences to LF. I've also implemented conversion of CR to
LF, to be on the safe line (CR is often mentioned as Mac-style EOL) —
but if this last operation is not needed I could omit it and gain some
speed in my toolchain.
Are there any real chances that in some OSs' pandoc will use CR as EOL
character? (I'm not aware of all the OSs' pandoc runs in)
It won't do this on any OS that pandoc runs in, as far as
I'm aware.
|
it is unlikely to happen these days... MacOS 9.x-only text files are something that I never in many years |
I implemented a flag to force the line-endings in output in a PR: |
When I run Pandoc on the same text on Linux and Windows, the Windows output will have CR/LF and the Linux one will have LF line endings. This is rather annoying, I would expect either to:
The text was updated successfully, but these errors were encountered: