{"action":"opened","issue":{"url":"https://api.github.com/repos/robotframework/robotframework/issues/2156","labels_url":"https://api.github.com/repos/robotframework/robotframework/issues/2156/labels{/name}","comments_url":"https://api.github.com/repos/robotframework/robotframework/issues/2156/comments","events_url":"https://api.github.com/repos/robotframework/robotframework/issues/2156/events","html_url":"https://github.com/robotframework/robotframework/issues/2156","id":107931875,"number":2156,"title":"\"Get Library Instance\" doesn't work if library has space in name","user":{"login":"boakley","id":1123938,"avatar_url":"https://avatars.githubusercontent.com/u/1123938?v=3","gravatar_id":"","url":"https://api.github.com/users/boakley","html_url":"https://github.com/boakley","followers_url":"https://api.github.com/users/boakley/followers","following_url":"https://api.github.com/users/boakley/following{/other_user}","gists_url":"https://api.github.com/users/boakley/gists{/gist_id}","starred_url":"https://api.github.com/users/boakley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boakley/subscriptions","organizations_url":"https://api.github.com/users/boakley/orgs","repos_url":"https://api.github.com/users/boakley/repos","events_url":"https://api.github.com/users/boakley/events{/privacy}","received_events_url":"https://api.github.com/users/boakley/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-23T14:26:43Z","updated_at":"2015-09-23T14:26:43Z","closed_at":null,"body":"If I load a library using \"WITH NAME\", and the name I give it has a space, \"Get Library Instance\" cannot find the library. There are no restrictions in the user guide about using spaces in the name, and I can use the name with spaces when calling the keywords, so I assume this is a valid use case. \r\n\r\nGiven a test library \"mylibrary.py\" with the following contents:\r\n\r\n    def some_keyword():\r\n        return \"42\"\r\n\r\nThis test will fail:\r\n\r\n    *** Settings **** \r\n    | Library | mylibrary.py | WITH NAME | foo bar\r\n\r\n    *** Test Cases ***\r\n    | Example\r\n    | | # this works as expected\r\n    | | foo bar.some keyword\r\n    | | \r\n    | | # this fails with \"No library 'foo bar' found.\r\n    | | Get library instance | foo bar\r\n\r\nWhen I look in the code (namespace.py), `KeywordStore.get_library` removes spaces before looking up the name. Perhaps it should first look for the name with spaces, and if not found it should look for the name without spaces?\r\n"}}