Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
SVG-output: mspace linebreak problems in fractions #391
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