[asterisk-bugs] [Asterisk 0013339]: AEL parser should trim RHS of an assignment

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Aug 20 12:27:46 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13339 
====================================================================== 
Reported By:                dimas
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   13339
Category:                   PBX/pbx_ael
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     new
Asterisk Version:           1.6.0-beta9 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2008-08-18 18:33 CDT
Last Modified:              2008-08-20 12:27 CDT
====================================================================== 
Summary:                    AEL parser should trim RHS of an assignment
Description: 
When AEL parser parses assignments like
  a = 123;
into
  Set(a=$[ 123]);
that is keeping the leading spaces after assignment operator.
IMHO the leading spaces should be removed:
  Set(a=$[123]);

If one needs to start value with a space, he/she could quote it like:
  a = " 123";

====================================================================== 

---------------------------------------------------------------------- 
 (0091591) dimas (reporter) - 2008-08-20 12:27
 http://bugs.digium.com/view.php?id=13339#c91591 
---------------------------------------------------------------------- 
Btw, I believe trailing spaces should be trimmed as well so 
  a = 123 ;
translates into
  Set(a=$[123])
instead of 
  Set(a=$[ 123 ]) 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-08-20 12:27 dimas          Note Added: 0091591                          
======================================================================




More information about the asterisk-bugs mailing list