Commit d77f623
fix(console): prevent multi-line object values in console.table (#32604)
## Summary
- Objects in `console.table` could break the table layout when their
`Deno.inspect` output exceeded the default `breakLength` (72 chars),
causing some rows to wrap across multiple lines
- Fix: set `breakLength: Infinity` in the inspect options for table cell
values, ensuring single-line rendering
Before:
```
│ 1 │ "371fe41e-..." │ { id: "371fe41e-...",
name: "Deutsche Bahn",
countryCode: "DE" } │
```
After:
```
│ 1 │ "371fe41e-..." │ { id: "371fe41e-...", name: "Deutsche Bahn", countryCode: "DE" } │
```
Fixes #18828
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent d7e449d commit d77f623
2 files changed
Lines changed: 30 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3771 | 3771 | | |
3772 | 3772 | | |
3773 | 3773 | | |
| 3774 | + | |
3774 | 3775 | | |
3775 | 3776 | | |
3776 | 3777 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1722 | 1722 | | |
1723 | 1723 | | |
1724 | 1724 | | |
| 1725 | + | |
| 1726 | + | |
| 1727 | + | |
| 1728 | + | |
| 1729 | + | |
| 1730 | + | |
| 1731 | + | |
| 1732 | + | |
| 1733 | + | |
| 1734 | + | |
| 1735 | + | |
| 1736 | + | |
| 1737 | + | |
| 1738 | + | |
| 1739 | + | |
| 1740 | + | |
| 1741 | + | |
| 1742 | + | |
| 1743 | + | |
| 1744 | + | |
| 1745 | + | |
| 1746 | + | |
| 1747 | + | |
| 1748 | + | |
| 1749 | + | |
| 1750 | + | |
| 1751 | + | |
| 1752 | + | |
| 1753 | + | |
1725 | 1754 | | |
1726 | 1755 | | |
1727 | 1756 | | |
| |||
0 commit comments