bartneck / swiML

A project to formalise swimming programs using XML
MIT License
2 stars 2 forks source link

simplified repetition does not work with distanceAsLaps #120

Closed bartneck closed 1 month ago

bartneck commented 1 month ago

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
bartneck commented 1 month ago

Tested and okay.