protected function appendBody(&$contents, $body) { $this->appendSection($contents, 'Body', 1, 1); $contents .= $this->line(2); $line = strtok($body, "\r\n"); while ($line !== false) { $contents .= $this->tab(3) . $line; $line = strtok("\r\n"); if ($line !== false) { $contents .= $this->line(); } } }