Transform property not parsed correctly in dev with no space between functions

Summary:

The latest (dev) version of Inkscape does not handle correctly transform properties with multiple transform functions (i.e. rotate(), translate(), etc.) concatenated together without spaces, even though concatenation without spaces is allowed by the SVG specifications.

Steps to reproduce:

  • Open the attached file. There are two squares in that file, the inner one of which has a transform property of translate(20)translate(0 20) – note no space between the two functions.

What happened?

The inner square is off-centre with respect to the outer one. image

What should have happened?

Based on the given transform, the inner square should be centred in the outer one. Only the first transform was parsed, not the second one.

The square is also properly centred if the transform property is translate(20) translate(0 20) instead, with a space.

Sample attachments:

transform.svg

Version Info:

- Inkscape Version: 1.1-dev (a22f98cf41, 2020-08-11)
- Operating System: Ubuntu 20.04