protected function generateText($node)
    {
        $buffer = '';
        
        $value = explode("\n", $node['value']);
        $last = count($value) - 1;
        
        foreach ($value as $i => $line) {
            $line = str_replace("'", '\\\'', $line);
            
            if ($i === $last) {
                $buffer .= $this->prettyPrint(sprintf(self::BLOCK_TEXT_LAST, $line));
                continue;
            }

            $buffer .= $this->prettyPrint(sprintf(self::BLOCK_TEXT_LINE, $line));
        }
        
        return $buffer;
    }