Skip to content

Line numbers cause extra blank lines when copy-pasting code #62

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
FeBe95 opened this issue Mar 3, 2025 · 1 comment
Open

Line numbers cause extra blank lines when copy-pasting code #62

FeBe95 opened this issue Mar 3, 2025 · 1 comment

Comments

@FeBe95
Copy link

FeBe95 commented Mar 3, 2025

Steps to reproduce

  1. Go to any page that uses torchlight, e.g. the homepage itself (https://torchlight.dev/)
  2. Find a code block that uses line numbers
  3. Select & copy code
  4. 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

20250303-1415-48.0885222.mp4
@FeBe95
Copy link
Author

FeBe95 commented Mar 3, 2025

Note

I've noticed that this is only reproducible in Firefox, but not in Chrome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant