Bug #64850 [NEW]: Extra whitespace before function links

From: Date: Wed, 15 May 2013 21:35:42 +0000
Subject: Bug #64850 [NEW]: Extra whitespace before function links
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-9825@lists.php.net to get a copy of this message
From: salathe@php.net Operating system: PHP version: Irrelevant Package: Doc Build problem Bug Type: Bug Bug description:Extra whitespace before function links Description: ------------ When rendering <function> tags, a space is added before the anchor tag. This was a deliberate choice (see comment below) but affects areas other than the function/method synopsis. The Package_PHP_XHTML::format_function() method says: // Leading space intional for methodname as phpdoc doesn't have a // space between <type> and the <methodname> in methodsynopsis However, this affects other uses of <methodname> and <function> and is particularly noticeable when the function name is written in parentheses. Examples: mysql_pconnect: "for future use ( mysql_close() will not close links" mysqlnd.stats: "from COM_LIST_FIELD ( mysql_list_fields()) and the" ldap_control_paged_results: "sent by the server ( ldap_control_paged_result_response())." The leading space should be removed. Instead, a space should be added to the rendered HTML only where it is needed: after rendering the <type>, before a <methodname>, in a <methodsynopsis>. -- Edit bug report at https://bugs.php.net/bug.php?id=64850&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=64850&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=64850&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=64850&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=64850&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=64850&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=64850&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=64850&r=needscript Try newer version: https://bugs.php.net/fix.php?id=64850&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=64850&r=support Expected behavior: https://bugs.php.net/fix.php?id=64850&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=64850&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=64850&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=64850&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=64850&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=64850&r=dst IIS Stability: https://bugs.php.net/fix.php?id=64850&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=64850&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=64850&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=64850&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=64850&r=mysqlcfg

« previous php.doc.bugs (#9825) next »