question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

issue with newline on Windows when writing ASCII table

See original GitHub issue

When 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:closed
  • Created 7 years ago
  • Comments:9 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
astrofrogcommented, May 3, 2019

I just ran into this today!

1reaction
bsipoczcommented, Jun 15, 2017

Indeed, however I suggest to close the other one as that was opened later and has less discussion.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found