space-wizards / space-station-14

A multiplayer game about paranoia and chaos on a space station. Remake of the cult-classic Space Station 13.
https://spacestation14.io
MIT License
2.14k stars 2.84k forks source link

Guidebook links break formatting #27173

Open Terraspark4941 opened 2 months ago

Terraspark4941 commented 2 months ago

Description

When a link is used in the guidebook, all subsequent line breaks in the paragraph appear to be offset by one character further ahead than intended, resulting in weirdly cut wordings

Reproduction

  1. Go to guidebook
  2. Go to Science >> Cyborgs
  3. Loss (below)

Screenshots

image

Additional context

Tayrtahn commented 1 month ago

So there's another issue with links that I suspect is related. Changing the width of the guidebook shows it off:

https://github.com/space-wizards/space-station-14/assets/85356/992fccb2-af3c-4600-881a-d1657f1ac948

My guess is that RichTextEntry doesn't correctly handle markup tags that close themselves ([thing/] as opposed to [thing][/thing]). Or maybe not, I dunno.