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

Output is malformed Markdown #11

Open
0xazure opened this Issue Nov 2, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@0xazure
Owner

0xazure commented Nov 2, 2018

When we output the collected stars, the list displays nicely in a terminal but is malformed Markdown because newlines are created by leaving a blank line between lines of text and the current printing code doesn't add the necessary newlines.

The relevant section of code is here:

supernova/src/lib.rs

Lines 126 to 128 in d671a2e

for star in stars.iter() {
println!("{}", star);
}

Also to consider: is there a way we can detect if we're running in a terminal vs outputting to e.g. a file and change the behaviour based on the destination?

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