protected static function getLine($line, $count, $format, $content, &$result)
    {
        // make sure format is an array
        $format = explode('|', $format);
        // is first line
        if (count($format) >= 3 && 1 === $line) {
            $result[] = $format[0];
        }
        // format line
        $result[] = rtrim(sprintf(count($format) >= 3 ? $format[1] : $format[0], $content));
        // is last line
        if (count($format) >= 3 && $count === $line) {
            $result[] = $format[2];
        }
    }