#30456 [Opn]: Livedocs malforms example code

From: Date: Tue, 19 Oct 2004 03:08:40 +0000
Subject: #30456 [Opn]: Livedocs malforms example code
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969364584@lists.php.net to get a copy of this message
ID: 30456 User updated by: aidan@php.net Reported By: aidan@php.net Status: Open Bug Type: Livedocs problem PHP Version: Irrelevant New Comment: Whitespce in any element which hasn't set preserve to true will be ignored in most circumstances. Using &nbsp; won't be ignored, or setting preserve-whitespace in the CSS. Then you can not use &nbsp; at all. Previous Comments: ------------------------------------------------------------------------ [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 ' &nbsp;' with two &nbsp;) ------------------------------------------------------------------------ [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. ------------------------------------------------------------------------ [2004-10-16 21:03:38] nlopess@php.net Can you please give an example page that doesn't work? If I remember well, Ilia has applied one of my patches a while ago that fixed this. ------------------------------------------------------------------------ [2004-10-16 07:05:35] aidan@php.net Description: ------------ Livedocs, when displaying programlistings, doesn't preserve whitespace properly. The <code> element doesn't preserve whitespace, and the preserve-whitespace: pre line is commented out in the theme's css files. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=30456&edit=1

« previous php.doc (#969364584) next »