svn: /phd/trunk/phpdotnet/phd/ Format/Abstract/Manpage.php Package/Generic/Manpage.php
| From: | Hannes Magnusson | Date: | Sun, 25 Apr 2010 12:38:06 +0000 |
| Subject: | svn: /phd/trunk/phpdotnet/phd/ Format/Abstract/Manpage.php Package/Generic/Manpage.php | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-6451@lists.php.net to get a copy of this message | ||
bjori Sun, 25 Apr 2010 12:38:06 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=298496
Log:
- Do not add trailing new lines when it is already printed in the $tag
- Add a space after the disc to make the following text more readable
Changed paths:
U phd/trunk/phpdotnet/phd/Format/Abstract/Manpage.php
U phd/trunk/phpdotnet/phd/Package/Generic/Manpage.php
Modified: phd/trunk/phpdotnet/phd/Format/Abstract/Manpage.php
===================================================================
--- phd/trunk/phpdotnet/phd/Format/Abstract/Manpage.php 2010-04-25 12:10:57 UTC (rev 298495)
+++ phd/trunk/phpdotnet/phd/Format/Abstract/Manpage.php 2010-04-25 12:38:06 UTC (rev 298496)
@@ -41,7 +41,11 @@
$isMacro = $tag[0] == ".";
if ($open) {
- return "\n" . $tag . ($isMacro ? "\n" : "");
+
+ if ($isMacro && strpos($tag, "\n") === false) {
+ return "\n" . $tag . "\n";
+ }
+ return "\n" . $tag;
}
return ($isMacro ? "" : "\\fP");
Modified: phd/trunk/phpdotnet/phd/Package/Generic/Manpage.php
===================================================================
--- phd/trunk/phpdotnet/phd/Package/Generic/Manpage.php 2010-04-25 12:10:57 UTC (rev 298495)
+++ phd/trunk/phpdotnet/phd/Package/Generic/Manpage.php 2010-04-25 12:38:06 UTC (rev 298496)
@@ -166,7 +166,7 @@
),
'userinput' => '\\fB',
'variablelist' => 'format_indent',
- 'varlistentry' => ".TP 0.2i\n\\(bu",
+ 'varlistentry' => ".TP 0.2i\n\\(bu ",
'varname' => 'format_suppressed_tags',
'void' => 'format_void',
'warning' => 'format_admonition',