[Bug] Code tag's CSS style hides spaces on line wrap

Anything related to the content on our wiki (https://wiki.factorio.com/)

Moderator: Bilka

vadcx
Long Handed Inserter
Long Handed Inserter
Posts: 51
Joined: Fri Apr 19, 2024 4:12 pm
Contact:

[Bug] Code tag's CSS style hides spaces on line wrap

Post by vadcx »

Take this page as an example: https://wiki.factorio.com/index.php?tit ... did=196250

The string inside code tags is literally with spaces in it:

Code: Select all

title =Category related title
Currently what happens if I resize the window or view it on phone, it hides the background of space characters making them invisible, as if they weren't there:

Code: Select all

title⏎
=Category related title
Expected for the background to always highlight the presence of SPACE (yes a little exaggerated to make a point):

Code: Select all

title  ⏎
=Category related title
I will attach screenshots too.
line-wrap-bug.png
line-wrap-bug.png (47.9 KiB) Viewed 481 times
Attachments
unwrapped-line.png
unwrapped-line.png (29.89 KiB) Viewed 481 times
Post Reply

Return to “Wiki Talk”