{"action":"created","issue":{"url":"https://api.github.com/repos/scheibler/khard/issues/99","repository_url":"https://api.github.com/repos/scheibler/khard","labels_url":"https://api.github.com/repos/scheibler/khard/issues/99/labels{/name}","comments_url":"https://api.github.com/repos/scheibler/khard/issues/99/comments","events_url":"https://api.github.com/repos/scheibler/khard/issues/99/events","html_url":"https://github.com/scheibler/khard/issues/99","id":180001896,"number":99,"title":"Wrapped lines are unreadable","user":{"login":"DancingQuanta","id":8419157,"avatar_url":"https://avatars.githubusercontent.com/u/8419157?v=3","gravatar_id":"","url":"https://api.github.com/users/DancingQuanta","html_url":"https://github.com/DancingQuanta","followers_url":"https://api.github.com/users/DancingQuanta/followers","following_url":"https://api.github.com/users/DancingQuanta/following{/other_user}","gists_url":"https://api.github.com/users/DancingQuanta/gists{/gist_id}","starred_url":"https://api.github.com/users/DancingQuanta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DancingQuanta/subscriptions","organizations_url":"https://api.github.com/users/DancingQuanta/orgs","repos_url":"https://api.github.com/users/DancingQuanta/repos","events_url":"https://api.github.com/users/DancingQuanta/events{/privacy}","received_events_url":"https://api.github.com/users/DancingQuanta/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-29T09:45:56Z","updated_at":"2016-09-29T12:36:02Z","closed_at":null,"body":"I find that if I use a long place name or long address in creation of a new contact the khard is unable to read the new .vcf because khard created the vcf with a line broken into two for the address.\r\nFor example the address line in newly created vcf\r\n```\r\nADR;TYPE=work:;Inst for Climate & Atmos Science (ICAS);University of Leeds;\r\nLeeds;;LS2 9JT;\r\n```\r\nDespite creating the line above, khard refused to parse it unless I changed the above lines to\r\n```\r\nADR;TYPE=work:;Inst for Climate & Atmos Science (ICAS);University of Leeds;Leeds;;LS2 9JT;\r\n```\r\nSo, why would khard wrap lines like this? And not being able to parse it afterwards?\r\n\r\nAnd I am on windows using cygwin, not sure if python get confused on the carriage returns and the carriage returns in vCard must be `\\n\\r` as noted in #56."},"comment":{"url":"https://api.github.com/repos/scheibler/khard/issues/comments/250453500","html_url":"https://github.com/scheibler/khard/issues/99#issuecomment-250453500","issue_url":"https://api.github.com/repos/scheibler/khard/issues/99","id":250453500,"user":{"login":"scheibler","id":8417416,"avatar_url":"https://avatars.githubusercontent.com/u/8417416?v=3","gravatar_id":"","url":"https://api.github.com/users/scheibler","html_url":"https://github.com/scheibler","followers_url":"https://api.github.com/users/scheibler/followers","following_url":"https://api.github.com/users/scheibler/following{/other_user}","gists_url":"https://api.github.com/users/scheibler/gists{/gist_id}","starred_url":"https://api.github.com/users/scheibler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scheibler/subscriptions","organizations_url":"https://api.github.com/users/scheibler/orgs","repos_url":"https://api.github.com/users/scheibler/repos","events_url":"https://api.github.com/users/scheibler/events{/privacy}","received_events_url":"https://api.github.com/users/scheibler/received_events","type":"User","site_admin":false},"created_at":"2016-09-29T12:36:02Z","updated_at":"2016-09-29T12:36:02Z","body":"Which khard version do you use? Did you create the contact with khard or does the contact come from\nanother source and you only want to read it?\n\nI can't reproduce your issue here with khard version 0.11.3 and vobject version 0.9.2. Let's assume,\nthat I want to use the contact template new_contact.yaml::\n\n```\nOrganisation : Inst for Climate & Atmos Science\nAddress :\n    work :\n        Box      : \n        Extended : Inst for Climate & Atmos Science (ICAS)\n        Street   : University of Leeds\n        Code     : LS2 9JT\n        City     : Leeds\n        Region   : \n        Country  : \n```\n\nTo create a new contact:\n\n```\ns10 source/khard% khard new -a organisations -i /tmp/new_contact.yaml\nCreation successful\n\nOrganisation: Inst for Climate & Atmos Science\nAddress book: organisations\nAddress\n    work:\n        University of Leeds\n        Inst for Climate & Atmos Science (ICAS)\n        LS2 9JT Leeds\nMiscellaneous\n    UID: ft7taxaovnt9q0kntdj86a3xamcc6hhzpvyd\n```\n\nYou also could omit the -i parameter and copy/paste the input data by yourself.  The resulting vcard\nlooks like:\n\n```\nBEGIN:VCARD\nVERSION:3.0\nUID:ft7taxaovnt9q0kntdj86a3xamcc6hhzpvyd\nADR;TYPE=work:;Inst for Climate & Atmos Science (ICAS);University of Leeds;\n Leeds;;LS2 9JT;\nFN:Inst for Climate & Atmos Science\nN:;;;;\nORG:Inst for Climate & Atmos Science\nREV:20160929T141915Z\nX-ABSHOWAS:COMPANY\nEND:VCARD\n```\n\nThe line break itself is necessary, cause the vcard standard only allows lines of 75 chars in length\n(https://tools.ietf.org/html/rfc2426#section-2.6).  But please notice the single space character in\nfront of the \"Leeds;;LS2 9JT;\" line.  I don't know, why that space char is missing in your example\noutput.\n\n"}}
{"actor":{"display_login":"scheibler"}}