You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Simon MacDonald (JIRA)" <ji...@apache.org> on 2012/09/17 15:32:08 UTC

[jira] [Assigned] (CB-1481) ContactName - name.formatted returns with a trailing white space

     [ https://issues.apache.org/jira/browse/CB-1481?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Simon MacDonald reassigned CB-1481:
-----------------------------------

    Assignee: Simon MacDonald  (was: Joe Bowser)
    
> ContactName - name.formatted returns with a trailing white space
> ----------------------------------------------------------------
>
>                 Key: CB-1481
>                 URL: https://issues.apache.org/jira/browse/CB-1481
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.0.0
>            Reporter: Valter Vicente
>            Assignee: Simon MacDonald
>            Priority: Minor
>             Fix For: 2.2.0
>
>
> I'm developing an application for Android and iOS and since displayName is not available in iOS, I'm using name.formatted which works in both. But while my iOS application was working as expected, the Android one wasn't and I found out that that's because when name.formatted is retrieved, it comes with a trailing white space.
> Apply a jQuery trim is an obvious workaround, but it's a simple bug to solve and maybe it will benefit everyone, who will not waste time with it - I wasted about an hour trying to figure it out what was happening.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira