{"action":"opened","issue":{"url":"https://api.github.com/repos/redmatrix/redmatrix/issues/296","labels_url":"https://api.github.com/repos/redmatrix/redmatrix/issues/296/labels{/name}","comments_url":"https://api.github.com/repos/redmatrix/redmatrix/issues/296/comments","events_url":"https://api.github.com/repos/redmatrix/redmatrix/issues/296/events","html_url":"https://github.com/redmatrix/redmatrix/issues/296","id":66382169,"number":296,"title":"Newlines should not be replaced with <br> inside [table]","user":{"login":"jeroenpraat","id":3049892,"avatar_url":"https://avatars.githubusercontent.com/u/3049892?v=3","gravatar_id":"","url":"https://api.github.com/users/jeroenpraat","html_url":"https://github.com/jeroenpraat","followers_url":"https://api.github.com/users/jeroenpraat/followers","following_url":"https://api.github.com/users/jeroenpraat/following{/other_user}","gists_url":"https://api.github.com/users/jeroenpraat/gists{/gist_id}","starred_url":"https://api.github.com/users/jeroenpraat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeroenpraat/subscriptions","organizations_url":"https://api.github.com/users/jeroenpraat/orgs","repos_url":"https://api.github.com/users/jeroenpraat/repos","events_url":"https://api.github.com/users/jeroenpraat/events{/privacy}","received_events_url":"https://api.github.com/users/jeroenpraat/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/redmatrix/redmatrix/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-05T00:07:11Z","updated_at":"2015-04-05T00:07:11Z","closed_at":null,"body":"_From @pafcu on January 18, 2015 9:48_\n\nThe following bbcode:\r\n```\r\n[table]\r\n[tr][td]Row 1[/td][/tr]\r\n[tr][td]Row 2[/td][/tr]\r\n[/table]\r\n```\r\n\r\nproduces the incorrect HTML\r\n```\r\n<table><br /><tr><td>Row 1</td></tr><br /><tr><td>Row 2</td></tr><br /></table>\r\n```\r\nNote the inserted `<br />`. Because `<br>` is not allowed inside `<table>`, at least Firefox displays them before the table, resulting in multiple blank linkes in front of tables. This makes long tables problematic, as the user is required to scroll down past the empty lines to see the table.\r\n\r\nThe workaround is to write the entire table on one line:\r\n```\r\n[table][tr][td]Row 1[/td][/tr][tr][td]Row 2[/td][/tr][/table]\r\n```\r\n\r\nHowever, this is not good when working with long tables.\r\n\r\nThe key to fix this issue is probably in include/bbcode.php\r\n\n\n_Copied from original issue: friendica/red#860_"}}