# Explicit line break between two mtext elements is ignored #707

Closed
opened this issue Jan 5, 2014 · 4 comments

Projects
None yet
1 participant
Member

### dpvc commented Jan 5, 2014

 The line break in  ab cd [/itex]  is ignored in HTML_CSS mode, and causes a [Math Processing Error] in SVG output.

Member Author

### dpvc commented Feb 14, 2014

 It turns out that the issue, here, is that  is considered space-like (whether it is empty or not), and so the inferred  surrounding the three elements is an embellished operator. That means the three should be treated as a single unit, and the break should occur before the embellished operator, not within the operator. So this is, technically, correct behavior. That is,  x ab cd [itex]  should be rendered x abcd  since the "ab" and "cd" are embellishments to the operator that is the linebreak. One solution would be to not consider an  with more than one element to be embellished (for purposes of linebreaking). This would allow the break to occur between the "ab" and the "cd", yielding xab cd  Alternatively, the TeX \\ could insert an empty  along with the one that forces the line break, so that the inferred  is no longer an embellished operator, and so will break normally. THis might be more natural than fiddling with the definition of embellished.

### dpvc pushed a commit to dpvc/MathJax that referenced this issue Feb 14, 2014

 Forced explicit linebreak between text elements to not look like an e… 
…mbellished operator. Resolves issue mathjax#707.  Note however, that Firefox treats this differently (it seems not to treat mtext as space-like in this case).
 d28ab8b 

### dpvc pushed a commit to dpvc/MathJax that referenced this issue Feb 14, 2014

 Change mo to mspace (and remove extra mo) to avoid being an embellish… 
…ed operator more naturally. Issue mathjax#707.
 cce9256 
Member Author

### dpvc commented Feb 14, 2014

 I ended up using  rather than  to avoid the possibility of it being an embellished operator.

### dpvc pushed a commit to dpvc/MathJax that referenced this issue Feb 14, 2014

 Merge branch 'issue707' into develop. Issue mathjax#707. 
 8cd2eec 

Member Author

### dpvc commented Feb 14, 2014

 => Merged.

### dpvc pushed a commit to dpvc/MathJax that referenced this issue Feb 14, 2014

 Don't use info.embellished if the SVGdata isn't available (avoids Mat… 
…h Processing Error). Issue mathjax#707.
 c52f0df 

### dpvc pushed a commit to dpvc/MathJax that referenced this issue Feb 14, 2014

 Merge branch 'issue707' into develop. Issue mathjax#707. 
 86792ea 

### dpvc pushed a commit to mathjax/MathJax-test that referenced this issue Apr 21, 2014

 Add test for issue mathjax/MathJax#707. 
 9e07221 
Member Author

### dpvc commented Apr 21, 2014

 => In Test Suite. MathMLToDisplay/Topics/LineBreak/issue707.html