Support shortening lines with multiple dict keys