crosswordnexus / crossword-tools

Other
2 stars 4 forks source link

Extraneous bold tags in Across title #85

Open rnewton opened 8 months ago

rnewton commented 8 months ago

Hello! I'm not familiar with this code (but thank you for making it open source!). Sometimes this tool as exposed on https://www.crosswordnexus.com/apps/puz-to-nyt/ and https://njyoon.github.io/pdf.html is exporting PDFs with the across title formatted as <b>Across</b> instead of actually having bold text. I can't share the actual PDF, but here's a cropped screenshot of the issue:

Screenshot 2024-02-12 at 9 58 29 AM

I'm not sure if the offending code is here, but it seems like you expect <B> instead of <b>.

crosswordnexus commented 8 months ago

Oh interesting. Do you have a sample puz/jpz/ipuz file where this happens? Or a way of generating such a file?

rnewton commented 8 months ago

Sure! Here's the puz and pdf output.

-- redacted --

crosswordnexus commented 8 months ago

(I'm not sure you want to share your address with the whole internet -- I've downloaded the file so if you want to delete it, feel free)

rnewton commented 8 months ago

Thanks! Good catch there