anyproto / anytype-heart

Shared library for Anytype clients
https://anytype.io
Other
243 stars 47 forks source link

"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 w-66 opened 9 months ago

w-66 commented 9 months ago

Have you read a contributing guide?

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

Crims-on commented 7 months ago

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