Opened 11 years ago
Last modified 7 years ago
#11119 new enhancement
Strip whitespace from macro arguments — at Initial Version
Reported by: | Ryan J Ollos | Owned by: | Steffen Hoffmann |
---|---|---|---|
Priority: | normal | Component: | AccountManagerPlugin |
Severity: | normal | Keywords: | macro argument |
Cc: | osimons, Jun Omae | Trac Release: | 0.11 |
Description
While working on a patch t:#10751, I added a stripws
argument to parse_args
, to strip leading and trailing whitespace from non-keyed macro arguments (see cd5f4cee). There hasn't been any interest expressed in the patch so far, but I encountered a situation this evening that made me think we should deal with this for the UserStats
macro.
The macro call [[UserQuery(email, name, visit)]]
results in the list [u'email', u' name', u' visit']
. The output of the macro is then,
admin, user1 <user1@gmail.com>, user2 <user2@gmail.com>
rather than the expected,
Account | Name | Last Login | |
---|---|---|---|
admin | |||
user1 | User One | user1@gmail.com | 16 hours ago |
user2 | User Two | user2@gmail.com |
Note: See
TracTickets for help on using
tickets.