Commit eb3f2f6
committed
fix(lucid-face): strip extra trailing newline from transform_source
When source ends with \n, String.split_on_char '\n' produces a trailing
empty string. The loop processes it as an empty line, emitting an extra
\n via Buffer.add_char — making output end with \n\n instead of \n.
Strip the redundant newline at the end of transform_source so the output
matches the snapshot (which was already updated to have exactly one
trailing newline).
https://claude.ai/code/session_01Vrh2f1G8tf7ZbNcKh9r5U91 parent eaccd8b commit eb3f2f6
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
658 | 658 | | |
659 | 659 | | |
660 | 660 | | |
661 | | - | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
662 | 665 | | |
663 | 666 | | |
664 | 667 | | |
| |||
0 commit comments