{"action":"created","issue":{"url":"https://api.github.com/repos/ericchiang/pup/issues/49","labels_url":"https://api.github.com/repos/ericchiang/pup/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/ericchiang/pup/issues/49/comments","events_url":"https://api.github.com/repos/ericchiang/pup/issues/49/events","html_url":"https://github.com/ericchiang/pup/issues/49","id":98815648,"number":49,"title":"print each matching element on one line","user":{"login":"jackphel","id":1048685,"avatar_url":"https://avatars.githubusercontent.com/u/1048685?v=3","gravatar_id":"","url":"https://api.github.com/users/jackphel","html_url":"https://github.com/jackphel","followers_url":"https://api.github.com/users/jackphel/followers","following_url":"https://api.github.com/users/jackphel/following{/other_user}","gists_url":"https://api.github.com/users/jackphel/gists{/gist_id}","starred_url":"https://api.github.com/users/jackphel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jackphel/subscriptions","organizations_url":"https://api.github.com/users/jackphel/orgs","repos_url":"https://api.github.com/users/jackphel/repos","events_url":"https://api.github.com/users/jackphel/events{/privacy}","received_events_url":"https://api.github.com/users/jackphel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-08-03T18:54:08Z","updated_at":"2015-08-08T20:06:42Z","closed_at":null,"body":"When I do `curl -s https://news.ycombinator.com/item?id=9996333 | pup '.comment'` I'm having a hard time taking the output and passing it along, maybe greping for text in the matched elements or sorting or something.\r\nDo you see an easier way to use the output than having an option to put each matched element on one line?   \r\n"},"comment":{"url":"https://api.github.com/repos/ericchiang/pup/issues/comments/129041959","html_url":"https://github.com/ericchiang/pup/issues/49#issuecomment-129041959","issue_url":"https://api.github.com/repos/ericchiang/pup/issues/49","id":129041959,"user":{"login":"jackphel","id":1048685,"avatar_url":"https://avatars.githubusercontent.com/u/1048685?v=3","gravatar_id":"","url":"https://api.github.com/users/jackphel","html_url":"https://github.com/jackphel","followers_url":"https://api.github.com/users/jackphel/followers","following_url":"https://api.github.com/users/jackphel/following{/other_user}","gists_url":"https://api.github.com/users/jackphel/gists{/gist_id}","starred_url":"https://api.github.com/users/jackphel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jackphel/subscriptions","organizations_url":"https://api.github.com/users/jackphel/orgs","repos_url":"https://api.github.com/users/jackphel/repos","events_url":"https://api.github.com/users/jackphel/events{/privacy}","received_events_url":"https://api.github.com/users/jackphel/received_events","type":"User","site_admin":false},"created_at":"2015-08-08T20:06:42Z","updated_at":"2015-08-08T20:06:42Z","body":"@ericchiang, piping is exactly what I'd like to do :smile:. \r\n\r\nIf matching elements get separated with newlines, it's difficult to determine which newlines were in the elements and which were added after. Perhaps html encoding the inner newlines could suffice to preserve them?\r\n\r\ne.g. \r\n```\r\n<div style=\"white-space: pre-wrap;\">hey\r\nbuddy</div>\r\n<div style=\"white-space: pre-wrap;\">hey\r\nbuddy</div>\r\n```\r\n -> `<div style=\"white-space: pre-wrap;\">hey&#x0A;buddy</div>\\n<div style=\"white-space: pre-wrap;\">hey&#x0A;buddy</div>\\n`\r\n\r\n@tylerlong, perhaps using the proposed `-c` then find/replacing unescaped newlines with whatever delimiter accomplishes arbitrary delimiting?"}}