{"action":"created","issue":{"url":"https://api.github.com/repos/davidmerfield/Typeset/issues/6","labels_url":"https://api.github.com/repos/davidmerfield/Typeset/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/davidmerfield/Typeset/issues/6/comments","events_url":"https://api.github.com/repos/davidmerfield/Typeset/issues/6/events","html_url":"https://github.com/davidmerfield/Typeset/issues/6","id":101526980,"number":6,"title":"Adjacent text nodes with hanging punctuation","user":{"login":"davidmerfield","id":747928,"avatar_url":"https://avatars.githubusercontent.com/u/747928?v=3","gravatar_id":"","url":"https://api.github.com/users/davidmerfield","html_url":"https://github.com/davidmerfield","followers_url":"https://api.github.com/users/davidmerfield/followers","following_url":"https://api.github.com/users/davidmerfield/following{/other_user}","gists_url":"https://api.github.com/users/davidmerfield/gists{/gist_id}","starred_url":"https://api.github.com/users/davidmerfield/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidmerfield/subscriptions","organizations_url":"https://api.github.com/users/davidmerfield/orgs","repos_url":"https://api.github.com/users/davidmerfield/repos","events_url":"https://api.github.com/users/davidmerfield/events{/privacy}","received_events_url":"https://api.github.com/users/davidmerfield/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/davidmerfield/Typeset/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-17T22:56:45Z","updated_at":"2016-01-26T02:28:04Z","closed_at":null,"body":"```<p>Hello, <em>\"Mr\"</em> Fox.</p>```\r\n\r\nI need to insert a spacer when the adjacent sibling is a text node."},"comment":{"url":"https://api.github.com/repos/davidmerfield/Typeset/issues/comments/174782917","html_url":"https://github.com/davidmerfield/Typeset/issues/6#issuecomment-174782917","issue_url":"https://api.github.com/repos/davidmerfield/Typeset/issues/6","id":174782917,"user":{"login":"davidmerfield","id":747928,"avatar_url":"https://avatars.githubusercontent.com/u/747928?v=3","gravatar_id":"","url":"https://api.github.com/users/davidmerfield","html_url":"https://github.com/davidmerfield","followers_url":"https://api.github.com/users/davidmerfield/followers","following_url":"https://api.github.com/users/davidmerfield/following{/other_user}","gists_url":"https://api.github.com/users/davidmerfield/gists{/gist_id}","starred_url":"https://api.github.com/users/davidmerfield/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidmerfield/subscriptions","organizations_url":"https://api.github.com/users/davidmerfield/orgs","repos_url":"https://api.github.com/users/davidmerfield/repos","events_url":"https://api.github.com/users/davidmerfield/events{/privacy}","received_events_url":"https://api.github.com/users/davidmerfield/received_events","type":"User","site_admin":false},"created_at":"2016-01-26T02:28:04Z","updated_at":"2016-01-26T02:28:04Z","body":"So my approach to solving this is as follows:\r\n\r\nIf a text node begins with punctuation that needs to be hung\r\n\r\nThen check if its parent node's previous sibling is also a text node, and if so add the appropriate spacer to the end of its content."}}