Replace hyphens in the text with \n?

Hello, are there any online services that replace a single indent to \n, double indent on \n\n and so on?
April 19th 20 at 12:15
1 answer
April 19th 20 at 12:17
Solution
How about replace function in any text editor?
How to portray the character transfer? - carlotta.Muller commented on April 19th 20 at 12:20
@carlotta.Muller, how about you explain what does it do? - Travis.Kohle commented on April 19th 20 at 12:23
@Travis.Kohle, does it matter? Need for line breaks in the json file - carlotta.Muller commented on April 19th 20 at 12:26
@carlotta.Muller, is set to select the way solutions or for the realization of the meaninglessness of the question.
in this case, I see no sense in adding in the json line breaks. usually json is a single line. programs that work with him are all perfectly parse.
why do you json line breaks? and in json are usually removed all the indents and spaces - Travis.Kohle commented on April 19th 20 at 12:29
@Travis.Kohle, stored in json texts for the program - carlotta.Muller commented on April 19th 20 at 12:32
@carlotta.Muller, for which program? what formatting is used?
it may be worth looking into html or markdown markup - Travis.Kohle commented on April 19th 20 at 12:35
@Travis.Kohle, Writing gaming bots on node.js - carlotta.Muller commented on April 19th 20 at 12:38
@carlotta.Muller, in General, the issue here is not json
node can read from any file. the question is, how this text is then rendered. markdown, html, or something. what client it will display? - Travis.Kohle commented on April 19th 20 at 12:41
@Travis.Kohle, he sent a message via vk api ( message.send ) - carlotta.Muller commented on April 19th 20 at 12:44

Find more questions by tags Text processing