1<?php
2/**
3 * @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
4 */
5
6if(!defined('DOKU_INC')) die();
7require_once 'printer.php';
8
9class nspages_printerLineBreak extends nspages_printer {
10    function __construct($plugin, $mode, $renderer, $data){
11        parent::__construct($plugin, $mode, $renderer, $data);
12    }
13
14    function _print($tab, $type) {
15      $firstItem = true;
16        foreach($tab as $item) {
17            if ( ! $firstItem ){
18                $this->renderer->linebreak();
19            }
20            $this->_printElementLink($item);
21            $firstItem = false;
22        }
23    }
24
25    function printTransition(){
26      $this->renderer->cdata(', ');
27    }
28
29}
30