issue with newline on Windows when writing ASCII table
See original GitHub issueWhen I run the following code:
>>> rows = [{"a":1},{"a":3}]
>>> t = Table(rows=rows)
>>> t.write("test.csv", format="ascii.csv")
the output looks like this:
a
1
3
(including the newlines) I’m using Windows 7 and astropy 1.2.
Issue Analytics
- State:
- Created 7 years ago
- Comments:9 (8 by maintainers)
Top Results From Across the Web
Why does "\n" give a new line on Windows? - Stack Overflow
\n is the Line Feed character in the ASCII table, so of course, you get a new line. The unexpected thing is that...
Read more >conversion of new line to ascii - MSDN - Microsoft
I am trying to write a code to convert any text into ascii, my code is working correctly,. and am writing a code...
Read more >Why are text file line breaks wrong, after the file is ... - WinSCP
After transferring or editing a file, it may happen that line breaks are wrong, what may manifest as: Line breaks are lost.
Read more >Line feed - ASCII Code
How typing: Spanish letter enye, uppercase N with tilde, EÑE, enie ? WINDOWS: on computers with Windows operating system like Windows 8, Win...
Read more >EOL or End of Line or newline ascii character
Windows : Windows has a different style of newline, Windows supports the combination of both CR and LF as the newline character -...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I just ran into this today!
Indeed, however I suggest to close the other one as that was opened later and has less discussion.