Preformatted code double spaced

A forum where we can just geek out together.

Moderator: atreestump

Forum rules
No Spam. No Porn. No Gore. No Abusive Behavior. It's that simple.
Post Reply
jwmart
Posts: 0
Joined: Wed Jan 28, 2026 6:30 pm

Preformatted code double spaced

Post by jwmart »

A small bug with preformatted code which appears to be that two newlines are used in the output for every one newline in the input. Below an example, unpreformatted first, followed by the preformatted version:

1
2
3
[code]
1
2
3
[/code]

Additionally angle brackets get eaten, nomnom.
Last edited by jwmart on Fri Feb 06, 2026 2:54 pm, edited 1 time in total.
User avatar
atreestump
Posts: 921
Joined: Sun Jun 15, 2025 3:53 pm

Preformatted code double spaced

Post by atreestump »

I need to sort out how code renders, was always in the back of my mind.

Sorted it - I added an old school terminal view.
Last edited by atreestump on Sat Feb 07, 2026 7:20 am, edited 1 time in total.
User avatar
kFoyauextlH
Posts: 1484
Joined: Sun Jun 15, 2025 3:53 pm

Re: Preformatted code double spaced

Post by kFoyauextlH »

This isn't exactly about what you are bringing up here, but I wondered if you are amused by the sort of thing in this video:

jwmart
Posts: 0
Joined: Wed Jan 28, 2026 6:30 pm

Preformatted code double spaced

Post by jwmart »

Amused is the wrong word for how I feel about those types of technical issue :-D
It's the type of issue that, when I was more heavily into coding, and I came up against something similar, I'd need all my focus to deal with it, and I'd hate it. Then once resolved, all detail was expunged from my memory and I wouldn't go near that bit of code ever again.
User avatar
Parrhesia
Posts: 34
Joined: Sun Jun 15, 2025 3:53 pm

Preformatted code double spaced

Post by Parrhesia »

[quote]jwmart wrote:
Amused is the wrong word for how I feel about those types of technical issue :-D
It's the type of issue that, when I was more heavily into coding, and I came up against something similar, I'd need all my focus to deal with it, and I'd hate it. Then once resolved, all detail was expunged from my memory and I wouldn't go near that bit of code ever again.[/quote]

I need to add a copy code button. Will do it later.
Post Reply