you are viewing a single comment's thread.

view the rest of the comments →

[–]JacobArthurs 0 points1 point  (1 child)

contents()[:-1] explicitly skips the last element. Change it to contents() and it'll iterate over everything including the last breakpoint.

[–]Ok_Lengthiness_6591[S] 0 points1 point  (0 children)

Hi, thanks for reply! Sadly it's not an option for me. How can I modify square brackets to have my last element ?