public static function nl2p($string, $viewer) {
        $items = new \ArrayList();

        foreach(explode(PHP_EOL, $string) as $item) {
            if (trim($item)) {
                $items->push(new \ArrayData(array(
                    'line'	=> $item
                )));
            }
        }

        return $viewer->customise(new \ArrayData(array(
            'Paragraphs' => $items
        )))->renderWith('Paragraphs');
    }