Repository navigation
Commit c7a8051
fix(install/rc): trim trailing newline when embedding source_line
format_block expects source_line to be a single line; Nushell's
source_line is the whole snippet from include_str! which always ends in
'\n', so the previous format string left a blank line between the
last snippet line and the close marker. trim_end_matches('\n') is a
no-op for the existing one-liner shells and makes the Nushell block
visually consistent with them.
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>1 parent 280fa76 commit c7a8051
1 file changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
157 | 161 | | |
158 | 162 | | |
159 | 163 | | |
160 | | - | |
| 164 | + | |
161 | 165 | | |
162 | 166 | | |
163 | 167 | | |
| |||
264 | 268 | | |
265 | 269 | | |
266 | 270 | | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
267 | 274 | | |
268 | 275 | | |
269 | 276 | | |
| |||
0 commit comments