cvs: phd /phpdotnet/phd/Format/Abstract Manpage.php

From: Date: Mon, 06 Jul 2009 06:46:55 +0000
Subject: cvs: phd /phpdotnet/phd/Format/Abstract Manpage.php
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-4341@lists.php.net to get a copy of this message
moacir Mon Jul 6 06:46:55 2009 UTC Added files: /phd/phpdotnet/phd/Format/Abstract Manpage.php Log: new class Format_Abstract_Manpage http://cvs.php.net/viewvc.cgi/phd/phpdotnet/phd/Format/Abstract/Manpage.php?view=markup&rev=1.1 Index: phd/phpdotnet/phd/Format/Abstract/Manpage.php +++ phd/phpdotnet/phd/Format/Abstract/Manpage.php <?php namespace phpdotnet\phd; abstract class Format_Abstract_Manpage extends Format { protected $formatname; protected $ext; protected $outputdir; protected $fp = array(); protected $chunked; public $role = false; /* If a chunk is being processed */ protected $chunkOpen = false; public function UNDEF($open, $name, $attrs, $props) { if ($open) { trigger_error("No mapper found for '{$name}'", E_USER_WARNING); } return "\n.B [NOT PROCESSED] $name [/NOT PROCESSED]"; } public function CDATA($str) { return $this->highlight(trim($str), $this->role, 'troff'); } public function TEXT($str) { $ret = trim(preg_replace( '/[ \n\t]+/', ' ', $str)); // No newline if current line begins with ',', ';', ':', '.' if (strncmp($ret, ",", 1) && strncmp($ret, ";", 1) && strncmp($ret, ":", 1) && strncmp($ret, ".", 1)) $ret = "\n" . $ret; return $ret; } public function transformFromMap($open, $tag, $name, $attrs, $props) { if ($tag === '') return $tag; $isMacro = (strncmp($tag, ".", 1) == 0); if ($open) { return "\n" . $tag . ($isMacro ? "\n" : ""); } return ($isMacro ? "" : "\\fP"); } public function createLink($for, &$desc = null, $type = Format::SDESC) { } } ?>

« previous php.doc.cvs (#4341) next »