PEAR is archived and read-only

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

Home » PHP » PHP_Beautifier » Bug #4460

function t_doc_comment wrong indent

Details

Submitted2005-05-28 09:15 UTC
Fromwebmaster at phpmyforum dot de
StatusBogus
PackagePHP_Beautifier
PHP Version5.0.4
OSLinux
Roadmaps(Not assigned)

Comments

[2005-05-28 09:15 UTC] webmaster at phpmyforum dot de

Description:
------------
Just test it with the code below, this is the patch for PHP/Beautifier/Filter/Default.filter.php:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

175c175
< $this->oBeaut->add($sLine);
---
> $this->oBeaut->add(' '.$sLine);
179c179
< $this->oBeaut->add($aMatch[3]);
---
> $this->oBeaut->add(' '.$aMatch[3]);
211c211
< $this->oBeaut->add(trim($sLinea));
---
> $this->oBeaut->add(' '.trim($sLinea));
373c373
< ?>
\ No newline at end of file
---
> ?>

Reproduce code:
---------------
/**
* an comment
*
* @param $test
*/

Expected result:
----------------
/**
* an comment
*
* @param $test
*/

Actual result:
--------------
/**
* an comment
*
* @param $test
*/

[2005-05-28 17:27 UTC] webmaster at phpmyforum dot de

right, done ;)