Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Text wrapping behaving oddly in devlogs & comments

A topic by Hempuli created 2 days ago Views: 20
Viewing posts 1 to 1
(1 edit)

Hi,
I've recently noticed multiple instances of text wrapping being wonky and not matching what I actually entered in the editor. This has appeared both when leaving comments and posting devlogs. It seems that when inputting long sentences without linebreaks, the words sometimes get cut off in a buggy way when viewing the resulting post. Example below:

This is from a devlog for my projects; you can see the issue yourself here. I've verified that others get the same issue as well, and checked in text editor that no unexpected symbols have snuck into the text that'd account for the problem; in Itch's text editor the above words look completely normal.

Edit: Thanks to some investigation done by others, it seems that the broken word-wrapping is related to window size, with different sizes causing these broken-up words in different spots. Based on this investigation, it seems that the Itch CSS contains the following:

.user_formatted { word-wrap: break-word }

which would appear to be the culprit and seems like an unwanted stylesheet element.