Forum Archive

How to join lines/remove linebreaks?

fdebruin

Dear all,

I am new to Editorial, mark-down, and python and I am looking for some help to convert a text that consists of multiple lines into one single line.

The text looks like this:

The quick brown
fox jumps over
the lazy dog

And I need this:

The quick brown fox jumps over the lazy dog

I'd hoped this would be easy but I can't figure it out.

Thanks,
Frank

omz

This is pretty easy to do with a workflow (no Python coding needed):

http://editorial-app.appspot.com/workflow/6404300896993280/YSWHKZKkp5k

The workflow operates on the current selection and simply replaces line-breaks with spaces.

fdebruin

Thanks! It works like a charm.

I wish the rest of my life was this easy :-)

Frank