linebreaking015-linebreak5

Linebreaking: Linebreak="badbreak", a break occurs at linebreak='badbreak' if there are no suitable breaking points around it. In this case, there is a 'badbreak' after a_20 and 'nobreak' for all the other operators. The break should occur after that term and before the following '+'.

<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
  <mrow>
    <msub>
      <mrow>
        <mi>a</mi>
      </mrow>
      <mrow>
        <mn>1</mn>
      </mrow>
    </msub>
    <mo linebreak="nobreak">+</mo>
    <msub>
      <mrow>
        <mi>a</mi>
      </mrow>
      <mrow>
        <mn>2</mn>
      </mrow>
    </msub>
    <mo linebreak="nobreak">+</mo>
    <msub>
      <mrow>
        <mi>a</mi>
      </mrow>
      <mrow>
        <mn>3</mn>
      </mrow>
    </msub>
    <mo linebreak="nobreak">+</mo>
    <msub>
      <mrow>
        <mi>a</mi>
      </mrow>
      <mrow>
        <mn>4</mn>
      </mrow>
    </msub>
    <mo linebreak="nobreak">+</mo>
    <msub>
      <mrow>
        <mi>a</mi>
      </mrow>
      <mrow>
        <mn>5</mn>
      </mrow>
    </msub>
    <mo linebreak="nobreak">+</mo>
    <msub>
      <mrow>
        <mi>a</mi>
      </mrow>
      <mrow>
        <mn>6</mn>
      </mrow>
    </msub>
    <mo linebreak="nobreak">+</mo>
    <msub>
      <mrow>
        <mi>a</mi>
      </mrow>
      <mrow>
        <mn>7</mn>
      </mrow>
    </msub>
    <mo linebreak="nobreak">+</mo>
    <msub>
      <mrow>
        <mi>a</mi>
      </mrow>
      <mrow>
        <mn>8</mn>
      </mrow>
    </msub>
    <mo linebreak="nobreak">+</mo>
    <msub>
      <mrow>
        <mi>a</mi>
      </mrow>
      <mrow>
        <mn>9</mn>
      </mrow>
    </msub>
    <mo linebreak="nobreak">+</mo>
    <msub>
      <mrow>
        <mi>a</mi>
      </mrow>
      <mrow>
        <mn>10</mn>
      </mrow>
    </msub>
    <mo linebreak="nobreak">+</mo>
    <msub>
      <mrow>
        <mi>a</mi>
      </mrow>
      <mrow>
        <mn>11</mn>
      </mrow>
    </msub>
    <mo linebreak="nobreak">+</mo>
    <msub>
      <mrow>
        <mi>a</mi>
      </mrow>
      <mrow>
        <mn>12</mn>
      </mrow>
    </msub>
    <mo linebreak="nobreak">+</mo>
    <msub>
      <mrow>
        <mi>a</mi>
      </mrow>
      <mrow>
        <mn>13</mn>
      </mrow>
    </msub>
    <mo linebreak="nobreak">+</mo>
    <msub>
      <mrow>
        <mi>a</mi>
      </mrow>
      <mrow>
        <mn>14</mn>
      </mrow>
    </msub>
    <mo linebreak="nobreak">+</mo>
    <msub>
      <mrow>
        <mi>a</mi>
      </mrow>
      <mrow>
        <mn>15</mn>
      </mrow>
    </msub>
    <mo linebreak="nobreak">+</mo>
    <msub>
      <mrow>
        <mi>a</mi>
      </mrow>
      <mrow>
        <mn>16</mn>
      </mrow>
    </msub>
    <mo linebreak="nobreak">+</mo>
    <msub>
      <mrow>
        <mi>a</mi>
      </mrow>
      <mrow>
        <mn>17</mn>
      </mrow>
    </msub>
    <mo linebreak="nobreak">+</mo>
    <msub>
      <mrow>
        <mi>a</mi>
      </mrow>
      <mrow>
        <mn>18</mn>
      </mrow>
    </msub>
    <mo linebreak="nobreak">+</mo>
    <msub>
      <mrow>
        <mi>a</mi>
      </mrow>
      <mrow>
        <mn>19</mn>
      </mrow>
    </msub>
    <mo linebreak="nobreak">+</mo>
    <msub>
      <mrow>
        <mi>a</mi>
      </mrow>
      <mrow>
        <mn>20</mn>
      </mrow>
    </msub>
    <mspace linebreak="badbreak"/>
    <mo>+</mo>
    <msub>
      <mrow>
        <mi>a</mi>
      </mrow>
      <mrow>
        <mn>21</mn>
      </mrow>
    </msub>
    <mo linebreak="nobreak">+</mo>
    <msub>
      <mrow>
        <mi>a</mi>
      </mrow>
      <mrow>
        <mn>22</mn>
      </mrow>
    </msub>
    <mo linebreak="nobreak">+</mo>
    <msub>
      <mrow>
        <mi>a</mi>
      </mrow>
      <mrow>
        <mn>23</mn>
      </mrow>
    </msub>
    <mo linebreak="nobreak">+</mo>
    <msub>
      <mrow>
        <mi>a</mi>
      </mrow>
      <mrow>
        <mn>24</mn>
      </mrow>
    </msub>
    <mo linebreak="nobreak">+</mo>
    <msub>
      <mrow>
        <mi>a</mi>
      </mrow>
      <mrow>
        <mn>25</mn>
      </mrow>
    </msub>
    <mo linebreak="nobreak">+</mo>
    <msub>
      <mrow>
        <mi>a</mi>
      </mrow>
      <mrow>
        <mn>26</mn>
      </mrow>
    </msub>
    <mo linebreak="nobreak">+</mo>
    <msub>
      <mrow>
        <mi>a</mi>
      </mrow>
      <mrow>
        <mn>27</mn>
      </mrow>
    </msub>
    <mo linebreak="nobreak">+</mo>
    <msub>
      <mrow>
        <mi>a</mi>
      </mrow>
      <mrow>
        <mn>28</mn>
      </mrow>
    </msub>
    <mo linebreak="nobreak">+</mo>
    <msub>
      <mrow>
        <mi>a</mi>
      </mrow>
      <mrow>
        <mn>29</mn>
      </mrow>
    </msub>
    <mo linebreak="nobreak">+</mo>
    <msub>
      <mrow>
        <mi>a</mi>
      </mrow>
      <mrow>
        <mn>30</mn>
      </mrow>
    </msub>
    <mo linebreak="nobreak">+</mo>
    <msub>
      <mrow>
        <mi>a</mi>
      </mrow>
      <mrow>
        <mn>31</mn>
      </mrow>
    </msub>
    <mo linebreak="nobreak">+</mo>
    <msub>
      <mrow>
        <mi>a</mi>
      </mrow>
      <mrow>
        <mn>32</mn>
      </mrow>
    </msub>
    <mo linebreak="nobreak">+</mo>
    <msub>
      <mrow>
        <mi>a</mi>
      </mrow>
      <mrow>
        <mn>33</mn>
      </mrow>
    </msub>
    <mo linebreak="nobreak">+</mo>
    <msub>
      <mrow>
        <mi>a</mi>
      </mrow>
      <mrow>
        <mn>34</mn>
      </mrow>
    </msub>
    <mo linebreak="nobreak">+</mo>
    <msub>
      <mrow>
        <mi>a</mi>
      </mrow>
      <mrow>
        <mn>35</mn>
      </mrow>
    </msub>
    <mo linebreak="nobreak">+</mo>
    <msub>
      <mrow>
        <mi>a</mi>
      </mrow>
      <mrow>
        <mn>36</mn>
      </mrow>
    </msub>
    <mo linebreak="nobreak">+</mo>
    <msub>
      <mrow>
        <mi>a</mi>
      </mrow>
      <mrow>
        <mn>37</mn>
      </mrow>
    </msub>
    <mo linebreak="nobreak">+</mo>
    <msub>
      <mrow>
        <mi>a</mi>
      </mrow>
      <mrow>
        <mn>38</mn>
      </mrow>
    </msub>
  </mrow>
</math>

Author: Autumn Cuellar, dessci.com