A line break in text is nothing more than a special character " n". In python, there is the 'replace' method for strings, which is used like this
"blabla".replace('a' , 'e')
resulting in the string "bleble".
'a’s have been replaced by 'e’s. You can replace a character (or a string) with nothing, too.
"vígula,".replace("," , "")
resulting in the string "comma".
Or:
"coisa".replace("coisa" , "nada")
resulting in the string "nothing".
And finally:
"várias palavras separadas por espaço".replace(" " , "\n")
resulting "several npalavras nseparadas npor nespaço".
The special character " n", as stated, will be displayed as a new line, separating the words into different lines.
I could give an example of how your text file is and how I would like it to look after the process?
– Woss