highlight(trim($value), $this->role, 'troff'); } public function TEXT($value) { $ret = preg_replace( '/[ \n\t]+/', ' ', $value); // Escape \ ' and NUL byte $ret = addcslashes($ret, "\\'\0"); // No newline if current line begins with ',', ';', ':', '.' if (in_array($ret[0], array(",", ";", ":", "."))) { return $ret; } return $ret; } public function transformFromMap($open, $tag, $name, $attrs, $props) { if ($tag === '') { return $tag; } $isMacro = $tag[0] == "."; if ($open) { if ($isMacro && strpos($tag, "\n") === false) { return "\n" . $tag . "\n"; } return "\n" . $tag; } return ($isMacro ? "" : "\\fP"); } public function createLink($for, &$desc = null, $type = Format::SDESC) { } }