Home » PHP » PHP_Beautifier » Bug #4460
function t_doc_comment wrong indent
Details
| Submitted | 2005-05-28 09:15 UTC |
|---|---|
| From | webmaster at phpmyforum dot de |
| Status | Bogus |
| Package | PHP_Beautifier |
| PHP Version | 5.0.4 |
| OS | Linux |
| 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 ;)