php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28958 Lost spaces in examples
Submitted: 2004-06-29 10:23 UTC Modified: 2005-09-14 01:00 UTC
From: vrana@php.net Assigned:
Status: No Feedback Package: Website problem
PHP Version: Irrelevant OS: Irrelevant
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
38 - 10 = ?
Subscribe to this entry?

 
 [2004-06-29 10:23 UTC] vrana@php.net
Description:
------------
One space is lost in examples if there is odd number of spaces greater than 3. See e.g. http://www.php.net/manual/en/language.types.boolean.php#AEN2401

Here is the patch:

Index: layout.inc
===================================================================
RCS file: /repository/phpweb/include/layout.inc,v
retrieving revision 1.202
diff -u -r1.202 layout.inc
--- layout.inc	10 Apr 2004 10:52:24 -0000	1.202
+++ layout.inc	29 Jun 2004 08:16:26 -0000
@@ -38,7 +38,7 @@
             '<span class="',
             '</span>',
             "\n&nbsp;",
-            '&nbsp; '
+            ' &nbsp;'
         ),
         $highlighted
     ) . '</div>';



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-04-14 09:31 UTC] tony2001@php.net
Is it still required?
 [2005-04-14 09:37 UTC] vrana@php.net
Yes, please.
 [2005-09-06 16:04 UTC] sniper@php.net
Still required? I can't see the reason why..
The examples on that page look just fine to me.
 [2005-09-14 01:00 UTC] php-mirrors at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 06 17:01:34 2024 UTC