fork download
  1. import re
  2. text = "Here's the narrator telling some things to the player. Of course I could do some things but\nnow it's time to ask for help!\n\nProbably it's a simple thing, but it's been lots of time in research and no\nsuccess..."
  3. print(re.sub(r'(?<!\n)\n(?!\n)', ' ', text))
Success #stdin #stdout 0.02s 9508KB
stdin
Standard input is empty
stdout
Here's the narrator telling some things to the player. Of course I could do some things but now it's time to ask for help!

Probably it's a simple thing, but it's been lots of time in research and no success...