ParadiseSS13 / Paradise

Paradise Station's GitHub main repository.
https://www.paradisestation.org/forum
GNU Affero General Public License v3.0
405 stars 1.2k forks source link

A paperwork bug - '&ZeroWidthSpace' when papers are stacked #18419

Open Nerfection opened 2 years ago

Nerfection commented 2 years ago

Issue Description:

When you stack papers which have a [logo] you are left with the phrase '​' in the top left, throwing off all the formatting, making it look terrible.

What did you expect to happen: I expect the papers to look as written/formatted, despite being stacked with other papers, without extra phrasing/formatting. This throws off otherwise well done paperwork when things are attached them (e.g. Forensics reports for detectives/autopsy pictures for coroners etc.)

This throws off otherwise well done paperwork when things are attached them (e.g. Forensics reports for detectives/autopsy pictures for coroners etc.)

What happened instead: The phrase '​' appeared to the left of the [logo] element, meaning that the logo and surrounding formatting was off-centre. I expected there to be no additional words, and the paperwork to appear the same with as without attached papers.

Why is this bad/What are the consequences: It makes otherwise good-looking paperwork ugly. It's not an important issue, just a long-lasting minor one.

Steps to reproduce the problem: Make any paperwork as normal including logo. Attach any other paper/photo to it, and the phrase appears. Without the logo it doesn't appear.

paperwork bug

When did the problem start happening: It has always happened, to my knowledge

Extra information: I can't think of anything else.

Sirryan2002 commented 2 years ago

This is an issue with how paper inputs are sanitized if I would have to guess