In a Support category discussion titled ‘Extra spaces within text’, user Steve_Walmsley asked how to preserve multiple spaces between words in Discourse without changing the font or using images that disappear upon editing. He explained his need to format a game after-action report for better readability.
User chapoi initially suggested using word-spacing: 1em; CSS, while Moin proposed converting the data into a Markdown table. ToddZ then provided a robust solution using a custom wrapper tag combined with CSS. By wrapping the text in [wrap=game-report]...[/wrap] and applying the rule [data-wrap="game-report"] { word-spacing: 1em; }, the spacing is preserved persistently without altering the font.
Steve_Walmsley confirmed this was the ideal solution he had independently discovered, noting his background in C++/C# and his intention to learn markup and CSS properly. He also mentioned programming his game to generate Markdown tables as an alternative. The discussion concluded with ToddZ sharing a link to a Discourse Meta guide on making custom CSS changes, which Steve_Walmsley bookmarked for future learning.
For formatting reasons, I would like to add extra spaces between words. Discourse normally removes these spaces, but sometimes it improves readability. I can use backticks, but that changes the font. I can use but that vanishes the next time I edit the text.
Is there a way to add extra spaces between words and keep it persistent, without changing font?
I am writing an after action report in a game. The report includes minerals present on a planet, with their accessibility. This is how it looks in Word (screenshot).