Skip to content
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

"Copying a piece of code from the Command Line Interface (CLI) to a code block results in an additional empty line being added after each line. #888

Open
2 of 3 tasks
w-66 opened this issue Feb 8, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@w-66
Copy link

w-66 commented Feb 8, 2024

Have you read a contributing guide?

  • I have read CONTRIBUTING.md
  • I have searched the existing issues and didn't find any that were similar
  • I have considered creating a pull request with fixes instead of a bug report and want to proceed

Current Behavior

example

 => [internal] load build definition from Dockerfile-generateconfig                                                                                          0.0s
 => => transferring dockerfile: 640B                                                                                                                         0.0s
 => [internal] load .dockerignore                                                                                                                            0.0s
 => => transferring context: 2B                                                                                                                              0.0s
 => [internal] load metadata for docker.io/library/alpine:3.18.4                                                                                             1.2s
 => [internal] load metadata for docker.io/library/golang:1.21.6-alpine3.19                                                                                  1.1s
 => [generator 1/6] FROM docker.io/library/golang:1.21.6-alpine3.19@sha256:a6a7f1fcf12f5efa9e04b1e75020931a616cd707f14f62ab5262bfbe109aa84a                  0.0s
 => CACHED [stage-1 1/7] FROM docker.io/library/alpine:3.18.4@sha256:eece025e432126ce23f223450a0326fbebde39cdf496a85d8c016293fc851978                        0.0s
 => [internal] load build context                                                                                                                            0.0s
 => => transferring context: 689B                                                                                                                            0.0s
 => CACHED [generator 2/6] RUN apk add --no-cache bash yq 

But at the end of the paste, there will be more spaces
图片

Paste to Notepad without problems:
图片

Expected Behavior

Delete redundant blank lines

Steps To Reproduce

1、copy
2、paste

Environment

- OS: Windows 10
- Version: 10

Anything else?

No response

@w-66 w-66 added the bug Something isn't working label Feb 8, 2024
@ra3orblade ra3orblade transferred this issue from anyproto/anytype-ts Feb 8, 2024
@Crims-on
Copy link

Same happens for me, I even tried copying the text from notepad and pasting it and still new line between every line

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants