Skip to content

Manual copying of contents on firefox introduces newlines #73

@jackaperkins

Description

@jackaperkins

Using firefox on windows 10, manually copying text includes many newline characters causing code to be ruined when pasting. This renders some code in the wild totally unusable. I understand there is a copy (clipboard) button but it's common for people like myself to copy a few lines at a time to test things out.

Example code where this was tested:
https://twoslash.netlify.app/guide/#after

Expected output (when copied with clipboard)

// Declare a tuple type
let x: [string, number]

// Initialize it
x = ['hello', 10]
// Initialize it incorrectly
x = [10, 'hello']

Current bad output (when copied with manual selection, ctrl+c):

// Declare a tuple type
let x
: [string, number]

// Initialize it
x
 = ['hello', 10]
// Initialize it incorrectly
x
 = [10, 'hello']

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions