Skip to main content
Multoman
Inspiring
October 18, 2022
Answered

A large line is written to a file and divided into paragraphs

  • October 18, 2022
  • 2 replies
  • 555 views

I have a very long code that needs to be written to a file using FL file.write(). But in the file, the code that should be written in one line is written as several paragraphs. Because of this, my code doesn't work. Is there a way to fix this problem?

  

This topic has been closed for replies.
Correct answer JoãoCésar17023019

I just have a word wrap (as in the second screenshot). I need to avoid it. All code should be written in one line


I think you're gonna have to use some regex to remove line breaks.

 

When I use an online tool like this one, I can get your text in one single line.

 

2 replies

kglad
Community Expert
Community Expert
October 18, 2022

the topmost code you showed is one line.

 

where do you see a line break (not a line wrap)?

Multoman
MultomanAuthor
Inspiring
October 18, 2022

The message code should be written on one stoic for correct operation, but I have a line break

kglad
Community Expert
Community Expert
October 18, 2022

copy and paste here the few hundred characters above and below the line break.

JoãoCésar17023019
Community Expert
Community Expert
October 18, 2022

Hi.

 

Can you show us the complete code or at least the most relevant parts?

 

Regards,

JC

Multoman
MultomanAuthor
Inspiring
October 18, 2022

Here is a link to the original project https://drive.google.com/file/d/1br2ST5Tww4hEdPmXh5_C6fcsNJooITJK/view?usp=sharing

I'm making a plugin installer

JoãoCésar17023019
Community Expert
Community Expert
October 18, 2022

Thanks for the file.

 

This is what I get in Visual Studio Code:

Without word wrap:


With word wrap: