Skip to content

Commit

Permalink
fix: newline after table
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonnalley committed Sep 25, 2024
1 parent 5bcbbcc commit fcb6029
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,7 @@ export function Skeleton(props: React.PropsWithChildren & {readonly height?: num
export function printTable<T extends Record<string, unknown>>(options: TableOptions<T>): void {
const instance = render(<Table {...options} />)
instance.unmount()
process.stdout.write('\n')
}

function Container(props: ContainerProps) {
Expand Down Expand Up @@ -439,4 +440,5 @@ export function printTables<T extends Record<string, unknown>[]>(
</Container>,
)
instance.unmount()
process.stdout.write('\n')
}

0 comments on commit fcb6029

Please sign in to comment.