Part of bzrlib
Function | chunks_to_lines | Re-split chunks into simple lines. |
Each entry in the result should contain a single newline at the end. Except for the last entry which may not have a final newline. If chunks is already a simple list of lines, we return it directly.
Parameters | chunks | An list/tuple of strings. If chunks is already a list of lines, then we will return it as-is. |
Returns | A list of strings. |