﻿id	summary	reporter	owner	description	type	status	priority	component	severity	resolution	keywords	cc	release
11119	Strip whitespace from macro arguments	Ryan J Ollos	Steffen Hoffmann	"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 [https://github.com/rjollos/trac/commit/cd5f4cee 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,
{{{
#!html
<div xmlns=""http://www.w3.org/1999/xhtml"" id=""accountlist"">
  <table class=""wiki"" id=""accountlist"">
    <thead>
      <tr>
        <th>Account</th>
        <th>Name</th>
        <th>Email</th>
        <th>Last Login</th>
      </tr>
    </thead>
    <tbody>
        <tr class=""even"">
          <td>
            <a href=""/tracdev/admin/accounts/users/admin"">admin</a>
          </td>
          <td></td>
          <td>
            <a href=""mailto:None""></a>
          </td>
            <td></td>
        </tr>
        <tr class=""odd"">
          <td>
            <a href=""/tracdev/admin/accounts/users/user1"">user1</a>
          </td>
          <td>User One</td>
          <td>
            <a href=""mailto:user1@gmail.com"">user1@gmail.com</a>
          </td>
            <td><span title=""05/25/2013 09:19:50 AM"">16 hours ago</span></td>
        </tr>
        <tr class=""even"">
          <td>
            <a href=""/tracdev/admin/accounts/users/user2"">user2</a>
          </td>
          <td>User Two</td>
          <td>
            <a href=""mailto:user2@gmail.com"">user2@gmail.com</a>
          </td>
            <td></td>
        </tr>
    </tbody>
  </table>
</div>
}}}
"	enhancement	new	normal	AccountManagerPlugin	normal			anonymous	
