V
V
VELAND2020-06-22 18:17:23
Node.js
VELAND, 2020-06-22 18:17:23

Why doesn't line break work when copying from txt file?

There is a txt file with the following content:


command user
command user
command user

etc. which we get with the help of fs when working with javascript (Through writefile)

When transferred to the GUI Edit element, the line break is lost and this is such an outrage:
5ef0cb31adf9d436637047.png
What exactly are such oddities connected with?
PS If you paste everything, for example, everything will be inserted into the VKontakte messenger normally, and if you copy from there (From the sent message) - everything is in order.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
wisgest, 2020-06-22
@VELAND

I do not know what program code the contents of the file are inserted into the GUI, but it is possible that the line separators in the file are in Unix format, but DOS/Windows should be.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question