Text this: Flow in a pipeline with leakage