code tag adds unwanted newline #18

Closed
opened 2026-10-05 03:08:02 +02:00 by adam · 2 comments
Owner
[code]
stuff
stuff
[/code]

this results in 2 newlines before

 tag ends. not sure how to deal with that though. can be prevented by putting [/code] right after the code but most people probably won't do that.

one solution i got is using or tag instead and adding the
s. kinda like quotes work.

``` [code] stuff stuff [/code] ``` this results in 2 newlines before <pre> tag ends. not sure how to deal with that though. can be prevented by putting `[/code]` right after the code but most people probably won't do that. one solution i got is using <code> or <span> tag instead and adding the <br>s. kinda like quotes work. <!-- github-sync-id:123351716 -->
adam closed this issue 2026-10-05 03:08:03 +02:00
Author
Owner

so

[code]
stuff1
stuff2
[/code]

should yield

<pre>stuff1
stuff2</pre>

not

<pre>

stuff1
stuff2
</pre>

correct?

so ``` [code] stuff1 stuff2 [/code] ``` should yield ``` <pre>stuff1 stuff2</pre> ``` not ``` <pre> stuff1 stuff2 </pre> ``` correct? <!-- github-comment-id:166914263 -->
Author
Owner

code tags are hard D:

they have been removed for now

code tags are hard D: they have been removed for now <!-- github-comment-id:183401331 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/nntpchan#18