Skip to content

Conversation

@svalentin
Copy link
Collaborator

@svalentin svalentin commented Dec 19, 2024

Turns out that <pre>...</pre> blocks ignore the first empty line, but <pre><code>...</code></pre> blocks don't. So if we put the first real line of code on the html line after the tags, it will render as an empty line. (a problem that didn't exist for just pre tags) Let's remove those extra newlines after code tags.

(I still think it's nice to have code tags for future syntax highlighting on the blog posts)

Turns out that `<pre>...</pre>` blocks ignore the first empty line, but
`<pre><code>...</code></pre>` blocks don't. So if we put the first real
line of code on the html line after the tags, it will render as an empty
line. (a problem that didn't exist for just pre tags)
Let's remove those extra newlines after code tags.

(I still think it's nice to have code tags for future syntax
highlighting on the blog posts)
@svalentin svalentin requested a review from JukkaL December 19, 2024 16:36
@JukkaL JukkaL merged commit 0f7a662 into python:master Dec 19, 2024
13 checks passed
@svalentin svalentin deleted the blog-html-code branch December 19, 2024 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants