Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.2.3

Bug #1465 <code> block eleminates leading spaces
Submitted: 2004-05-21 20:03 UTC
From: tobias at schlitt dot info Assigned: pmjones
Status: Closed Package: Text_Wiki
PHP Version: Irrelevant OS: Irrelevant
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 42 - 37 = ?

 
 [2004-05-21 20:03 UTC] tobias at schlitt dot info
Description: ------------ When opening a <code> block all leading whitespaces directly after the opening tag seem to be eleminated. Reproduce code: --------------- <code> Math_CalculationMethods Math_CalculationMethods_Addition Math_CalculationMethods_Subtraction Math_CalculationMethods_Multipication Math_CalculationMethods_Division Math_CalculationMethods_Division_Integer Math_CalculationMethods_Division_Float </code> Expected result: ---------------- Math_CalculationMethods Math_CalculationMethods_Addition Math_CalculationMethods_Subtraction Math_CalculationMethods_Multipication Math_CalculationMethods_Division Math_CalculationMethods_Division_Integer Math_CalculationMethods_Division_Float Actual result: -------------- Math_CalculationMethods Math_CalculationMethods_Addition Math_CalculationMethods_Subtraction Math_CalculationMethods_Multipication Math_CalculationMethods_Division Math_CalculationMethods_Division_Integer Math_CalculationMethods_Division_Float

Comments

 [2004-05-21 20:08 UTC] pmjones
Problem is in the code.php rule; it captures all whitespace after <code> not just up to the first newline.
 [2004-05-21 21:08 UTC] pmjones
This bug has been fixed in CVS. In case this was a documentation problem, the fix will show up at the end of next Sunday (CET) on pear.php.net. In case this was a pear.php.net website problem, the change will show up on the website in short time. Thank you for the report, and for helping us make PEAR better. Problem was trim() in code.php line 106. removed trim() which fixes the problem.