torchlight-laravel
torchlight-laravel copied to clipboard
Line numbers cause extra blank lines when copy-pasting code
Steps to reproduce
- Go to any page that uses torchlight, e.g. the homepage itself (https://torchlight.dev/)
- Find a code block that uses line numbers
- Select & copy code
- Paste code into a text editor
Expected results
Code is pasted without extra blank lines.
RequestReceived::class => [ ✅
...Octane::prepareApplicationForNextOperation(), ✅
...Octane::prepareApplicationForNextRequest(), ✅
],
Actual results
Code is pasted with one extra blank line after every "real" line.
RequestReceived::class => [ ✅
...Octane::prepareApplicationForNextOperation(), ✅
...Octane::prepareApplicationForNextRequest(), ✅
],
Screen recording
https://github.com/user-attachments/assets/75bad569-92ab-4a83-933f-23035f36ca27