NASA-IMPACT / nasa-apt

Code and issues relevant to the NASA APT project
Apache License 2.0
5 stars 0 forks source link

Bug: figure/table captions do not work correctly with special characters #878

Open bwbaker1 opened 3 weeks ago

bwbaker1 commented 3 weeks ago

Description

Table and figure captions do not display correctly on a PDF when the caption includes special characters. The caption is cutoff once a special character is used.

Figure example: Edit mode

Image

View mode

Image

PDF view

Image

bwbaker1 commented 3 weeks ago

@wrynearson A user brought this to my attention today. It is someone that is actively working on several ATBDs.

wrynearson commented 3 weeks ago

Hi @bwbaker1, I wasn't able to reproduce this. I tested with this document and added a bunch of "special characters" (like ©, ® and 😀, 🌍, 🎉, 👋 and ₂ ²) to the 2nd image caption in the "Additional Information" subsection.

They all rendered correctly in the PDF preview and exported PDF.

Did you see this issue in more than this document? Which document was it in?

bwbaker1 commented 3 weeks ago

@wrynearson Interesting. I created a new document and still had the issue. I did an end-to-end screen recording so you can see exactly what I am doing.

https://github.com/NASA-IMPACT/nasa-apt/assets/56319064/948b8a97-2085-4482-acc2-b8f5b0246fbf

wrynearson commented 3 weeks ago

Thank you so much for the screen recording! They're super helpful for debugging issues.

I see that you used the rich text editor and that everything after the bolded text was cut out. That's different than how I tested it (adding non-ASCII characters that I copied in from elsewhere). Using your method, I'm able to reproduce the issue.

@batpad @kamicut @vgeorge – any ideas as to what's happening?