Le PDF du rapport de sondage indique 0 vote

I (unfortunately) need to make a permanent record of a poll for regulatory purposes. How best to preserve a topic/post/poll as a permanent record

When I press Ctrl-P to create a pdf of the topic (in Firefox & Brave) the generated pdf shows:

  • For
  • Against

0 voters

When the pdf was generated, the (still open) poll actually had 6 voters on screen (6xFor, 0xAgainst).

1 « J'aime »

Our printer version of the page is JS free, and looks like the votes are attributed via JS.

Putting this information in HTML would require a rename on every vote, making it prohibitively expensive.

Your best best is taking a screenshot of said poll. And for our print page, hiding vote numbers is the easiest solution…

1 « J'aime »

Thanks for replying so quickly!

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!?

1 « J'aime »

Je viens de tomber sur ça. Cela semble être un bug évident. Ce serait certainement une amélioration d’éliminer la partie « 0 votes » du HTML, qui ne devrait même pas exister. Si noJS ne peut pas afficher les votes, il ne devrait jamais afficher « 0 votes ». Il ne devrait rien dire sur les votes, sauf s’il peut les afficher correctement.

La correction complète impliquerait probablement une fonction « print » ajoutée à Discourse qui générerait réellement le HTML approprié lorsque quelqu’un souhaite créer une version imprimable de quelque chose qui inclut un sondage.

1 « J'aime »

Pouvons-nous faire une correction rapide dans le CSS d’impression pour les sondages @awesomerobot ?

1 « J'aime »

Oui, cela le masque de l’impression :

et de la vue du robot d’exploration :

1 « J'aime »