Plasma ramps caused by outflow in gas-filled capillaries