Input:Key1: value1 value2 value3Key2: value1 value2 value3      value4 value5Key3: value1 value2 value3      value4 value5 value6      value7 value8Key4: Key5: value1 Output:Key1: value1 value2 value3Key2: value1 value2 value3 value4 value5Key3: value1 value2 value3 value4 value5 value6 value7 value8Key4: Key5: value1 How can I move indented lines to the end of the previous line?The number of the spaces are constant in the indented lines.There are dozens of keys, each might have value indented in the next line.Values for a key might placed in multiple line
How can I move indented lines to the end of the previous line?
text processing