joshbduncan / word-search-generator

Make awesome Word Search puzzles!
MIT License
72 stars 23 forks source link

Saving as CSV saves as a PDF with CSV extension #40

Closed sofiahall closed 1 year ago

sofiahall commented 1 year ago

I am trying to export the word search as a csv file using

p.save(path="puzzle.csv")

but what it gives me is a pdf with the csv extension instead of a csv file. If I rename the file to puzzle.pdf it shows the pdf.

joshbduncan commented 1 year ago

You just need to pass the format="csv" argument to the method. The format defaults to PDF so if no argument is supplied.

p.save(path="puzzle.csv", format="csv")

This was a breaking changed made a few versions ago and I see that I didn't update the README. I will get that updated today. Sorry for any confusion.

✌️

joshbduncan commented 1 year ago

Okay, I updated the WIKI to match the actual code.