Skip to main content

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

Pasting text into discussion forum text input box loses blank lines

A topic by jaredkrinke created Aug 27, 2021 Views: 178
Viewing posts 1 to 1
(+2)

I have a programming game with an itch.io-hosted discussion forum for sharing solutions.

There's a problem with pasting in code: when you paste in text containing blank lines, the blank lines get removed. This makes code that players paste into my forum hard to read. If you type blank lines in after pasting, everything works fine, so it's only copy-paste that's affected.

Example (I pasted text with the noted number of blank lines in, the blanks were lost on paste, and when I applied the "code" style, obviously the blanks were still missing):

Here is one line, followed by two blank lines.
Here is one line followed by one blank line
Here is one line followed by another line.
Here's the other line.