Pattern export with custom measurements isn't working

Hi, i am struggling to export the pattern Breanna that I created with one of my measurement sets. When I export it into any format, only the first part is generated with a bunch of empty space.

Here the link to my pattern with measurements: pattern

I tested a fair bit of stuff in trying to repair it.

  1. the other parts are being generate BUT they are invisible. In trying to fixing it I rearranged everything and noticed that the first part will appear on different pages and there are a bunch of empty pages.
    1. also when I generate a svg and convert it into pdf everything is the, it knows the parts, but isn’t “printing” hem onto the PDF
  2. the pattern generates correct, IF you use one of the curated measurements sets.
    1. in testing that i thought my measurements set is broken. I opened “edit setting by hand” and copy pasted the same measurements as in Vanessa and tried again, but same result.
  3. I try both engines, same result
  4. I tried other patters but didn’t find one where I didn’t have the problem
  5. I tied different browsers and different PCs… i was desperate to repair it

I am still open, that I do something wrong, because it is my first time using freesewing but I think I tested everything. Maybe idk

I did some uneducated testing :DDD

I found the culprit in your set name, it’s the “<“ you used in name, it looks one shouldn’t be using it. You can see it and delete it when you go to “edit settings by hand”

setName: ranja<3

when I changed it into

setName: ranja3

it works.

I guess the page stopped drawing the pattern when it comes to the name of the set in the label.

and you can also delete anything below line 21 or reset the layout, so the pieces will be in their position

1 Like

well…
I would never have guessed that, but ya, it works.

Thanks, like I said, never would have catch that

Edit:
do I have do mark this as the solution? do I have to close the thread?

I hope someone involved into the development will come by and decide if there is a need to do something about that.

@joost Should this be considered a bug?

I think it’s less a bug and more a consequence of how some symbols are handled/used by languages like HTML, CSS and JavaScript

Yes, we should encode these characters before injecting them so we do not break the SVG output.

Sounds exactly like #242 - [bug]: Missing HTML escape when exporting to SVG - freesewing/freesewing - Codeberg.org which was already discussed and fixed I think. Must have crept back in.

Hey, don’t know how the code works, just wanna throw in that the SVG file was the only thing that was generated correctly for me.

I don’t have a SVG viewer so I just converted it to pdf, but in this conversation was everything right. Only the pdf export from freesewing were wrong.

Interesting. As far as I know the PDF files are created from the SVG files, so that’s a bit weird, but definitely something worth investigating. Maybe the error happens during the SVG to PDF conversion.