The discussion revolves around the issue of generating a PDF record of a poll from a Discourse topic, where the printed version incorrectly shows “0 voters” despite the poll having actual votes (6 for, 0 against). nhoj highlights the problem when using Ctrl-P in Firefox and Brave, noting that the vote count is rendered via JavaScript and thus absent in the print-friendly, JS-free version. Falco explains that displaying vote numbers in HTML would require extensive renaming, making it impractical, and suggests taking a screenshot as a workaround. nhoj criticizes hiding the vote numbers as insufficient, emphasizing that poll results are often the key information in a topic. wolftune calls this a bug, arguing that if votes can’t be displayed, the system should not show “0 votes” at all. The discussion concludes with codinghorror suggesting a quick CSS fix, and awesomerobot confirming that a fix has been implemented to hide the incorrect vote count in print and crawler views.
My workaround for now is to print to pdf and then edit/correct the pdf.
Hiding the error seems like a fairly weak step in the right direction. When I have to print a page, it seems fairly important to have (all) of the information on the page included - particularly the result of a poll, which is likely the crucial point of the topic!?
Just ran into this. Seems a clear bug. Would be certainly an improvement to eliminate the “0 votes” part from HTML, that shouldn’t even exist. If noJS can’t show votes, it should never show “0 votes”. It shouldn’t say anything about votes unless it can show them correctly.
The full fix would probably involve a “print” function added to Discourse that actually then outputs the appropriate HTML when someone wants to make a print version of something that includes a poll.