#30456 [Opn->Csd]: Livedocs malforms example code
| From: | iliaa@php.net | Date: | Wed, 09 Feb 2005 19:04:07 +0000 |
| Subject: | #30456 [Opn->Csd]: Livedocs malforms example code | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969366463@lists.php.net to get a copy of this message | ||
ID: 30456
Updated by: iliaa@php.net
Reported By: aidan@php.net
-Status: Open
+Status: Closed
Bug Type: Livedocs problem
PHP Version: Irrelevant
Assigned To: ilia
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2004-10-19 06:03:03] curt@php.net
Nuno,
You might be seing my changes I made for the patch. The problem is that
hightlight_string() doesn't put in all places where a space
occurs, causing in some places a ' ' to get compressed thus loosing
indententation.
Here is an example of the white space compression (example Extending
the Exception class):
http://livedocs.homelinux.com/en/language.oop5.exceptions.html
Note:
1) indentation in actual code is four spaces. this only produces 3.
2) the comments withing /* */ get malformed.
CSS might be able to fix this problem, I'll look into instead of
translating all spaces to I'm not sure exactly why the original
translations of '\n ' to '<br> ' was there but I'm assuming
its due
to the behaviour of highlight_string().
------------------------------------------------------------------------
[2004-10-19 05:08:37] aidan@php.net
Whitespce in any element which hasn't set preserve to true will be
ignored in most circumstances. Using won't be ignored, or
setting preserve-whitespace in the CSS. Then you can not use at
all.
------------------------------------------------------------------------
[2004-10-17 12:48:12] nlopess@php.net
Sorry for my stupidity, but I couldn't find where the problem is... and
nor how the patch would fix the problem.
The patch will also create a bigger page (by replacing ' ' with
two )
------------------------------------------------------------------------
[2004-10-17 06:25:38] curt@php.net
here is a patch to fix the white space issue:
http://www.powertrip.co.za/livedocs/viewpatch.php?patch=17
------------------------------------------------------------------------
[2004-10-17 04:48:02] aidan@php.net
http://livedocs.zirzow.dyndns.org/index.php?l=en&q=language.oop5.exceptions
Look at the docblock, the first space is truncated. All the
programlistings have 3 spaces for the first indent, though 4 are in the
code.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/30456
--
Edit this bug report at http://bugs.php.net/?id=30456&edit=1