jpd236 / kotwords

Collection of crossword puzzle file format converters and other utilities, written in Kotlin.
Apache License 2.0
25 stars 6 forks source link

Broken line breaks in NYT notepads #23

Closed jpd236 closed 2 years ago

jpd236 commented 2 years ago

The NYT puzzle from 10/17 fails to correctly convert its notepad to the best possible format.

In the .puz, there are <br> tags. These should be changed to newlines (although they don't render in every app).

In the .jpz, there are escaped &lt;br> tags. I think the best we can do here is leave them unescaped, but should test in a few apps.

jpd236 commented 2 years ago

https://github.com/jpd236/kotwords/commit/5e4564fb75928f5230e5fd1b0b29dfb59316e109 made improvements here by replacing <br> with newlines. Since the JPZ format doesn't provide an official way of handling line breaks, this seems like it might be the best we can do.