|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #49849 Minor issue with unwanted linebreaks
Submitted: 2009-10-12 18:05 UTC Modified: 2009-12-30 12:07 UTC
From: Assigned:
Status: Closed Package: Doc Build problem
PHP Version: Irrelevant OS:
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 !
Your email address:
Solve the problem:
42 - 13 = ?
Subscribe to this entry?

 [2009-10-12 18:05 UTC]
PhD inserts unwanted linebreaks after e.g. the <parameter> tag. Example from the in_array() documentation:
   Searches <parameter>haystack</parameter> for <parameter>needle</parameter>.

This will be converted into this:
  <p class="para rdfs-comment">

   Searches <i><tt class="parameter">haystack</tt></i>
 for <i><tt class="parameter">needle</tt></i>

This will be displayed like this in the browser:
Searches haystack  for needle .

There is a longer sentence on the same page that causes the period to be unnecessarily on its own line.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2009-12-26 10:42 UTC]
PhD outputs all WS as-is. It doesn't normalize it or anything.
Thats a feature IMO, not a bug.
 [2009-12-28 18:31 UTC]
My report clearly shows that "PhD outputs all WS as-is." can't be true. The linebreak between "</i>" and "." is only in the generated output, while the source code (in-array.xml) contains "</parameter>." (i.e. no WS). The same is true for the other occurence of the closing "</parameter>" tag in the same line.
 [2009-12-30 12:06 UTC]
PhD does append \n in several places. After some tags, this is rendered 
as additional whitespace. 

 [2009-12-30 12:06 UTC]
Automatic comment from SVN on behalf of rquadling
Log: Remove superfluous \n to output of PhD. This removes whitespace after some tags.
Fix #49849
 [2009-12-30 12:07 UTC]
This bug has been fixed in SVN. Since the websites are not directly
updated from the SVN server, the fix might need some time to spread
across the globe to all mirror sites, including itself.

Thank you for the report, and for helping us make better.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Jul 15 02:01:28 2024 UTC