PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Tools and Utilities » PhpDocumentor » Bug #1193

Comments in code tags improperly formatted

Details

Submitted2004-04-13 10:45 UTC
Fromthesaur at php dot net
Assignedcellog
StatusBogus
PackagePhpDocumentor
PHP Version5.0.0b4 (beta4)
OSIrrelevant (Windows XP)
Roadmaps(Not assigned)

Comments

[2004-04-13 10:45 UTC] thesaur at php dot net

Description:
------------
phpDocumentor 1.3.0RC3

Normally, when code is included in the comment, it is properly indented. However, I have noticed the following strange exception, that appears in multiple browsers (IE 6, Firefox 0.8). So far, I've only tested various HTML formats.

The problem is that the second line of each // comment block is not indented at all, while the first and all other comment lines are properly indented.

Reproduce code:
---------------
<?php
/**
* Some test
*
* <code>
* // this is a test line
* // This is a second line
* // This is a third line
* </code>
*/
class foo {
function bar() {}
}

Expected result:
----------------
All commented lines should be aligned.

Actual result:
--------------
The second line is not indented. This occurs even when there are multiple spaces indenting it.