{"action":"created","issue":{"url":"https://api.github.com/repos/mathjax/MathJax/issues/1228","labels_url":"https://api.github.com/repos/mathjax/MathJax/issues/1228/labels{/name}","comments_url":"https://api.github.com/repos/mathjax/MathJax/issues/1228/comments","events_url":"https://api.github.com/repos/mathjax/MathJax/issues/1228/events","html_url":"https://github.com/mathjax/MathJax/issues/1228","id":98627215,"number":1228,"title":"Single operator ignores line breaks if only \\mbox's are used","user":{"login":"ArcadeMissile","id":3391249,"avatar_url":"https://avatars.githubusercontent.com/u/3391249?v=3","gravatar_id":"","url":"https://api.github.com/users/ArcadeMissile","html_url":"https://github.com/ArcadeMissile","followers_url":"https://api.github.com/users/ArcadeMissile/followers","following_url":"https://api.github.com/users/ArcadeMissile/following{/other_user}","gists_url":"https://api.github.com/users/ArcadeMissile/gists{/gist_id}","starred_url":"https://api.github.com/users/ArcadeMissile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArcadeMissile/subscriptions","organizations_url":"https://api.github.com/users/ArcadeMissile/orgs","repos_url":"https://api.github.com/users/ArcadeMissile/repos","events_url":"https://api.github.com/users/ArcadeMissile/events{/privacy}","received_events_url":"https://api.github.com/users/ArcadeMissile/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mathjax/MathJax/labels/MML%20spec%20limitation","name":"MML spec limitation","color":"4E2E28"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-02T18:46:39Z","updated_at":"2015-08-03T10:28:47Z","closed_at":null,"body":"### Demo\r\nFor a small live test, go to the [demo](http://codepen.io/anon/pen/GJPQre?editors=100) on CodePen.\r\n\r\n### Steps to reproduce\r\n1. Use only ```\\mbox```'s and line breaks (```\\\\```)\r\n2. Add only one operator anywhere (tested using ```\\times```, ```\\cdot```, ```+```, ```-```, ```*```, ```/```)\r\n\r\n### Example\r\nUsing ```\\[\\mbox{A} + \\mbox{B} \\\\ \\mbox{C} \\]``` gives the following:\r\n\r\n![](http://i.imgur.com/EKktSZI.png?1)\r\n\r\nUsing another [online latex editor](https://www.codecogs.com/latex/eqneditor.php) gave the correct result: \r\n\r\n![](http://i.imgur.com/6ZjwZ3U.gif?1)\r\n\r\n### Technical details:\r\n\r\n* Happens on version 2.5, master branch (commit: ba9afeb5a743249acdea17540b48b14ebc95dbe4)\r\n* Also happens on develop branch (commit: 930e35a39daf88b6207d766d3519e93b7bff01c6)\r\n* Tested Operating Systems: Windows 10, Mac OS X 10.10.4\r\n* Tested Browsers: Chrome (44.0.2403.125), Firefox (39.0)\r\n\r\nThanks.\r\n"},"comment":{"url":"https://api.github.com/repos/mathjax/MathJax/issues/comments/127187389","html_url":"https://github.com/mathjax/MathJax/issues/1228#issuecomment-127187389","issue_url":"https://api.github.com/repos/mathjax/MathJax/issues/1228","id":127187389,"user":{"login":"pkra","id":426686,"avatar_url":"https://avatars.githubusercontent.com/u/426686?v=3","gravatar_id":"","url":"https://api.github.com/users/pkra","html_url":"https://github.com/pkra","followers_url":"https://api.github.com/users/pkra/followers","following_url":"https://api.github.com/users/pkra/following{/other_user}","gists_url":"https://api.github.com/users/pkra/gists{/gist_id}","starred_url":"https://api.github.com/users/pkra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pkra/subscriptions","organizations_url":"https://api.github.com/users/pkra/orgs","repos_url":"https://api.github.com/users/pkra/repos","events_url":"https://api.github.com/users/pkra/events{/privacy}","received_events_url":"https://api.github.com/users/pkra/received_events","type":"User","site_admin":false},"created_at":"2015-08-03T10:28:47Z","updated_at":"2015-08-03T10:28:47Z","body":"First off all, thanks, @ArcadeMissile for such a detailed report! \r\n\r\n>  @pkra, what do you think?\r\n\r\nI'm in favor of somehow fixing this, ideally with support from the MathWG (cc @davidcarlisle)\r\n\r\n> A possible fix within MathJax would be to not treat <mspace> as space like when it has the linebreak=\"newline\" attribute.\r\n\r\nThat seems very reasonable to me.\r\n\r\n> Technically, this construction constitutes an \"embellished operator\", with the <mo>+</mo> being embellished by the <mtext> and <mspace> elements.\r\n\r\nI admit I don't know that part of the spec too well. Reading through [§3.2.5.7.3](http://www.w3.org/Math/draft-spec/mathml.html#chapter3_id.3.2.5.7.3) I don't see `mtext` being mentioned in the \"precise definition\" part, only (a vague) \"surrounding text or whitespace\" in the first paragraph (which seems informal?). So to me it seems like we can even ask the WG to clarify that part."}}