bartneck/swiML

simplified repetition does not work with distanceAsLaps

Closed this issue · 1 comments

When using <distanceAsLaps> in a simplified repetition, an assertion is triggered and the result is very messy (squares-in-square.xml):

    <instruction>
        <repetition>
            <simplify>true</simplify>
            <instruction>
                <length>
                    <lengthAsLaps>4</lengthAsLaps>
                </length>
                <stroke>
                    <standardStroke>backstroke</standardStroke>
                </stroke>
                <rest>
                    <afterStop>PT0M15S</afterStop>
                </rest>
            </instruction>
        </repetition>
    </instruction>

The html render is very confusing.
Screenshot 2024-07-09 at 2 16 50 PM

Tested and okay.