Commit 02721c1
committed
Fix broken right border in CLI extended help tables with inline code
Table cells containing inline code backticks (e.g. the cooldown package
manager config table) broke the right border alignment in the CLI. cli-table3
computed column widths including the backtick characters, but renderExtendedHelp
strips all backticks from the output afterward via uncode, shifting the text and
misaligning the border. Strip backticks from cells before computing the layout
so widths are calculated against the actual rendered text.1 parent 06c99c0 commit 02721c1
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
26 | 30 | | |
27 | | - | |
| 31 | + | |
28 | 32 | | |
29 | 33 | | |
30 | 34 | | |
| |||
0 commit comments