KristofferC / OhMyREPL.jl

Syntax highlighting and other enhancements for the Julia REPL
https://kristofferc.github.io/OhMyREPL.jl/latest/
Other
749 stars 56 forks source link

Pasting into Windows REPLs adds leading indentations #281

Open heetbeet opened 1 year ago

heetbeet commented 1 year ago
(@v1.8) pkg> status OhMyREPL
Status `C:\Users\simon\.julia\environments\v1.8\Project.toml`
  [5fb14364] OhMyREPL v0.5.12

Say I want to paste the following code into a Julia instance with OhMyREPL running:

function example()
    for i = 1:10
        """
            multi
            lines
            string
        """
    end
end

I get the following results (failures: cmd, Powershell, Windows Terminal, and VSCode; success: Minnty):

Cmd

image

Powershell

image

Windows Terminal

image

VSCode

image

Git Bash (Minnty) -- Success

image

MarcMush commented 1 year ago

This is the same issue as #239 My solution is https://github.com/KristofferC/OhMyREPL.jl/issues/239#issuecomment-826727682 (or #240)