php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #38902 str_replace documentation page has lots of empty whitespace
Submitted: 2006-09-20 15:29 UTC Modified: 2007-10-16 01:00 UTC
From: rgagnon at networkip dot net Assigned: bjori (profile)
Status: No Feedback Package: Website problem
PHP Version: Irrelevant OS: N/A
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: rgagnon at networkip dot net
New email:
PHP Version: OS:

 

 [2006-09-20 15:29 UTC] rgagnon at networkip dot net
Description:
------------
Looking at www.php.net/str_replace, it seems there is probably an extra table layout character, or something, as the description of the function does not begin at the top of the browser window like the rest of the functions.

This looked normal about a week ago.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-09-20 15:32 UTC] rgagnon at networkip dot net`
Checking further:

http://us2.php.net/str_replace

has the problem, but

http://us3.php.net/str_replace

does not
 [2006-09-20 16:38 UTC] bjori@php.net
Huh? I don't see any difference in Konqueror..
 [2006-09-20 17:51 UTC] nlopess@php.net
I do verify the problem on IE. really strange..
 [2006-09-20 17:53 UTC] rgagnon at networkip dot net
same thing on both us2 and us3 for the highlight_string function.

Maybe this is a global problem in a CSS file, or the like?
 [2006-09-20 17:59 UTC] goba@php.net
Well, the different between us2 and us3 can also be seen in Firefox. We have a horizontal scrollbar on us2 in Firefox (and a broken layout in IE). This is because http://us2.php.net/manual/en/function.str-replace.php#25884 which is a note too wide to fit into the box. It is not wrapping because it is enclosed in a 'pre' tag. I don't know why we use a 'pre' tag there and why isn't is higlighted...
 [2006-09-20 18:04 UTC] goba@php.net
The highlight string page also has non-wrapping examples (not uses notes) on the page. Those should be wrapping, and should not use 'pre' to enclose the output. This one (unlike the str_replace issue) is a problem with the manual build system.
 [2006-09-22 14:52 UTC] nlopess@php.net
same problem here: http://pt.php.net/manual/en/ini.php
 [2007-03-10 06:59 UTC] philip@php.net
Although the wrapping problem has been solved, there are two new problems (sorry to hijack reports, but it happens sometimes :)

1. That user comment for str_replace has strange syntax highlighting (<span class="default">)...

2. The issue with http://php.net/highlight-string that Goba mentions has to do with the second example, it's still too wide.

Assigning to Hannes the CSS master :)
 [2007-03-28 13:56 UTC] bjori@php.net
The user note (http://us2.php.net/manual/en/function.str-replace.php#25884) had a syntax error causing all sorts of weird problems (depending on the mirrors PHP version).
I've edited the note to fix the error.

Regarding the non-wrapping elements in the example presentation... I don't know if there really is anything we can do about it...
 [2007-10-08 12:24 UTC] bjori@php.net
Does this happen on http://docs.php.net/manual ?
 [2007-10-16 01:00 UTC] php-webmaster 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: Sun May 05 16:01:30 2024 UTC