{"action":"opened","issue":{"url":"https://api.github.com/repos/danneu/guild/issues/34","labels_url":"https://api.github.com/repos/danneu/guild/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/danneu/guild/issues/34/comments","events_url":"https://api.github.com/repos/danneu/guild/issues/34/events","html_url":"https://github.com/danneu/guild/issues/34","id":58478655,"number":34,"title":"Stop trimming inline bbcode contents","user":{"login":"danneu","id":529580,"avatar_url":"https://avatars.githubusercontent.com/u/529580?v=3","gravatar_id":"","url":"https://api.github.com/users/danneu","html_url":"https://github.com/danneu","followers_url":"https://api.github.com/users/danneu/followers","following_url":"https://api.github.com/users/danneu/following{/other_user}","gists_url":"https://api.github.com/users/danneu/gists{/gist_id}","starred_url":"https://api.github.com/users/danneu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danneu/subscriptions","organizations_url":"https://api.github.com/users/danneu/orgs","repos_url":"https://api.github.com/users/danneu/repos","events_url":"https://api.github.com/users/danneu/events{/privacy}","received_events_url":"https://api.github.com/users/danneu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-21T22:49:17Z","updated_at":"2015-02-21T22:49:17Z","closed_at":null,"body":"Users point out that this:\r\n\r\n```\r\n [u] Hello [/u][b] world [/b].\r\n```\r\n\r\nbecomes this:\r\n\r\n```\r\nHellloworld.\r\n```\r\n\r\nThis is because I trim() the contents of all bbcode tags to remove extraneous newlines.\r\n\r\nFor example, when a user writes block-element bbcode:\r\n\r\n```\r\n[quote]\r\nhello\r\n[/quote]\r\n```\r\n\r\nthen they don't actually want to render the newline before and after \"hello\".\r\n\r\nBut inline styling bbcode like `[b][/b]` doesn't need the trim(). Spaces between the tag contents and the tags in inline bbcode are generally caused by user error, and it's annoying to meticulously scan for accidental spaces.\r\n\r\nTo fix this, I'll need to tag bbcodes as either 'inline' or 'block' to dispatch different logic based on their type."}}