# SVG-output: mspace linebreak problems in fractions #391

Closed
opened this issue Feb 8, 2013 · 3 comments

Projects
None yet
2 participants
Member

### pkra commented Feb 8, 2013

 The following renders fine in HTML-output but SVG-output draws a very long fraction bar.  A B [/itex] 

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

 Only set width to full for top-level math elements, and make svg.Alig… 
…n() handle expanding the box to accommodate larger lines. Resolves issue mathjax#391.
 3d68051 

Member

### dpvc commented Feb 14, 2014

 The reason for this is that the SVG line-breaking forced the lines to be full-width so that alignment would work properly. Since we don't have dynamic placement (like in HTML, where percentage widths can be used), things like centering need to now the width before centering can be performed. But at the time a line-break is made, we don't know how large later lines may be, and so the full width was forced. I have resolved the issue by checking if the added line is longer than the previous contents, and moving the previous contents to accommodate the new size. The full width is set only when the line-breaking is for top-level [itex] elements.

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

 Merge branch 'issue391' into develop. Issue mathjax#391. 
 92c1a89 
Member

### dpvc commented Feb 15, 2014

 => Merged.

Closed

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

 Add test for issue mathjax/MathJax#391, and fix relative link in 707 … 
…(recently moved).
 4808424 
Member