Skip to content

Copying results containing string literals in the browser introduces line breaks #651

Open
@zampino

Description

@zampino

CleanShot 2024-06-25 at 12 46 48@2x

pastes as:

{:what
 "
 the hell"}

I think it's this .inline-flex hiding the actual whitespace given by the div element

[:span.inspected-value.inline-flex
[:span.cmt-string
(if (some #(and (string? %) (str/includes? % "\n")) (if (string? s) [s] s))
[expand-button !expanded-at opening-paren path]
[:span opening-paren])]
[:div
[:span.cmt-string (viewer/->value (render-string s opts)) (first closing-paren)]
(when (list? closing-paren) (into [:<>] (rest closing-paren)))]]))

but I guess there's a reason for that @philippamarkovics?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions