svn: /phd/trunk/ package_generic.xml phpdotnet/phd/Format/Abstract/Manpage.php
| From: | Hannes Magnusson | Date: | Sun, 25 Apr 2010 11:03:41 +0000 |
| Subject: | svn: /phd/trunk/ package_generic.xml phpdotnet/phd/Format/Abstract/Manpage.php | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-6445@lists.php.net to get a copy of this message | ||
bjori Sun, 25 Apr 2010 11:03:41 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=298490
Log:
Fixed bug#50666 (Missing entries in table)
# Fixes dozens of similar issues :]
Bug: http://bugs.php.net/50666 (Open) Missing entries in
table
Changed paths:
U phd/trunk/package_generic.xml
U phd/trunk/phpdotnet/phd/Format/Abstract/Manpage.php
Modified: phd/trunk/package_generic.xml
===================================================================
--- phd/trunk/package_generic.xml 2010-04-25 10:09:05 UTC (rev 298489)
+++ phd/trunk/package_generic.xml 2010-04-25 11:03:41 UTC (rev 298490)
@@ -47,6 +47,7 @@
<license uri="http://www.opensource.org/licenses/bsd-license.php">BSD
Style</license>
<notes>
- Fixed #51514 - Added tr, th and td mappings (Patch provided by Paul M Jones) (Richard
Quadling)
+ - Fixed #50666 - Missing entries in table (Hannes)
</notes>
<contents>
Modified: phd/trunk/phpdotnet/phd/Format/Abstract/Manpage.php
===================================================================
--- phd/trunk/phpdotnet/phd/Format/Abstract/Manpage.php 2010-04-25 10:09:05 UTC (rev 298489)
+++ phd/trunk/phpdotnet/phd/Format/Abstract/Manpage.php 2010-04-25 11:03:41 UTC (rev 298490)
@@ -22,6 +22,9 @@
public function TEXT($str) {
$ret = trim(preg_replace( '/[ \n\t]+/', ' ', $str));
+ // Escape \ ' and NUL byte
+ $ret = addcslashes($ret, "\\'\0");
+
// No newline if current line begins with ',', ';', ':',
'.'
if (in_array($ret[0], array(",", ";", ":", "."))) {
return $ret;