Req #53622 [PATCH]: CLI -w separate functions of striping whitespace and comments
| From: | aharvey@php.net | Date: | Tue, 04 Jan 2011 15:01:20 +0000 |
| Subject: | Req #53622 [PATCH]: CLI -w separate functions of striping whitespace and comments | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-157558@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=53622&edit=1
ID: 53622
Patch added by: aharvey@php.net
Reported by: mnelson at teshy dot com
Summary: CLI -w separate functions of striping whitespace and
comments
Status: Open
Type: Feature/Change Request
Package: CGI related
Operating System: all
PHP Version: 5.3.4
Block user comment: N
Private report: N
New Comment:
The following patch has been added/updated:
Patch Name: strip-comments-whitespace
Revision: 1294153279
URL:
http://bugs.php.net/patch-display.php?bug=53622&patch=strip-comments-whitespace&revision=1294153279
Previous Comments:
------------------------------------------------------------------------
[2011-01-01 01:57:40] johannes@php.net
I believe it is better to do this in userland. I'd actually drop the -w
flag completely. Keeping the bug open so people can disagree and
implement it :-)
btw. a userspace beautifier is on
http://pear.php.net/package/PHP_Beautifier
------------------------------------------------------------------------
[2010-12-28 17:44:55] mnelson at teshy dot com
Description:
------------
It would be useful if The Command line option "-w" for stripping
comments and
whitespace was broken down into separate commands. One for striping
whitespace and
one for striping comments, the commands could be combined for users that
want
both.
In our use case we have code that has become unreadable and needs
excessive
whitespace removed so it can be reformatted properly, we however want to
keep all
code comments.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=53622&edit=1