You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The puzpy module relies on .fill being set to a string the same length as solution (width*height). This library doesn't set it which leads to corrupted files. Workaround:
puz = crossword.to_puz(crossword_obj)
puz.fill = ' ' * (crossword_obj.height * crossword_obj.width)
# workaround for a separate Python 3+ compatibility issue in puzpy
puz.preamble = b''
return puz.tobytes()
The text was updated successfully, but these errors were encountered:
Thanks for reporting this, it's indeed possible (likely) that this was missed when implementing this library. I'd have to look into it and create a fix for it.
The
puzpy
module relies on.fill
being set to a string the same length assolution
(width*height). This library doesn't set it which leads to corrupted files. Workaround:The text was updated successfully, but these errors were encountered: