joinPreservingIndentation

emlib.textlib.joinPreservingIndentation(fragments)[source]

Like join, but preserving indentation

Parameters:

fragments (Sequence[str]) – a list of code strings

Return type:

str

Returns:

the joint code