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

ensure multiple markdown tables are rendered #62

Merged
merged 1 commit into from
Jan 9, 2024

Conversation

mdb
Copy link
Contributor

@mdb mdb commented Jan 7, 2024

This seeks to fix issue #61 by printing all output to the io.Writer passed to writer.TableWriter#Write. This ensures multiple, distinct markdown tables are printed, even when tf-summarize is invoked with both -md and -out flags.

Previously, fmt.Println() was used to separate the markdown tables, but this is insufficient when -out is used with a non-STDOUT writer, as is the case when writing output to a -out-specified file.

This seeks to fix issue #61 by printing all output to the `io.Writer` passed to
`writer.TableWriter#Write`. This ensures multiple, distinct markdown tables are
printed, even when `tf-summarize` is invoked with both `-md` and `-out` flags.

Previously, `fmt.Println()` was used to separate the markdown tables,
but this is insufficient when `-out` is used with a non-STDOUT writer, as is the
case when writing output to a `-out`-specified file.
@mdb mdb force-pushed the mdb/fix-malformed-markdown branch from 6858d2b to e9cd7da Compare January 7, 2024 19:45
Copy link
Owner

@dineshba dineshba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the detailed issue and the this PR. Much appreciated 👍

@mdb
Copy link
Contributor Author

mdb commented Jan 8, 2024

@dineshba Thanks for the feedback and approval! Do you have any sense of when this PR will be merged & released?

@dineshba dineshba merged commit 4287c0d into dineshba:main Jan 9, 2024
1 check passed
@dineshba
Copy link
Owner

dineshba commented Jan 9, 2024

Away from laptop till weekend. I'll release it by this weekend...

@mdb mdb deleted the mdb/fix-malformed-markdown branch January 11, 2024 00:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants