PHP 4.0 Bug #6429 Updated: wordwrap() function should have cutting option and handle tabs

From: Date: Tue, 12 Sep 2000 04:04:54 +0000
Subject: PHP 4.0 Bug #6429 Updated: wordwrap() function should have cutting option and handle tabs
Groups: php.dev 
Request: Send a blank email to php-dev+get-32930@lists.php.net to get a copy of this message
ID: 6429 Updated by: derick Reported By: gerbil@ucdavis.edu Status: Assigned Bug Type: Feature/Change Request Assigned To: derick Comments: I think your first is very usefull. Tonight I am going to work on that. Your second request is somewhat nastier. You say: "Also, PHP 4.0.2 treats tabs as a single character, when it normally occupies the space of 8 characters. It should be able to handle tabs." But on most systems the tab size is NOT 8 chracters, but 8 or so. Therefore I think such functionality is not wanted. Previous Comments: --------------------------------------------------------------------------- [2000-08-30 02:38:22] gerbil@ucdavis.edu The new wordwrap function should have a cutting option: When the the line is longer than the wrap length (such as a URL), there should be an option for either to cut it at that length, or leave it uncut (which is what PHP 4.0.2 currently does). Also, PHP 4.0.2 treats tabs as a single character, when it normally occupies the space of 8 characters. It should be able to handle tabs. --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=6429

« previous php.dev (#32930) next »