Commit 5db49e5
committed
fix(note): prevent clack from re-breaking copy-sensitive tokens
wrapNoteMessage correctly preserves copy-sensitive tokens (paths, URLs)
as unbroken lines, but clack's note() applies its own internal wrap
after our format callback, re-breaking the line at the terminal width.
Use a wide virtual stream (columns = max(80, longestLine + 12)) so
clack's internal wrap never triggers, letting wrapNoteMessage's output
pass through to the terminal intact.
Fixes #947301 parent 01e5621 commit 5db49e5
1 file changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
210 | | - | |
211 | | - | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
212 | 217 | | |
213 | 218 | | |
214 | 219 | | |
| |||
0 commit comments