daily icon indicating copy to clipboard operation
daily copied to clipboard

🐛 BUG: Code blocks have an extra line.

Open matiasvlevi opened this issue 3 years ago • 1 comments

🐛 Bug Report

What went wrong? 🤔

<pre> elements have an extra line in https://daily.dev/blog articles. This is especially irritating when we have 1 line code blocks.

Expected Behavior

Expected

Actual Behavior

Actual

Steps to Reproduce Issue

Present on every https://daily.dev/blog post with code blocks.

Solution

Maybe remove a line break in the function that formats the content to html?

so it would look like this in the html:

<pre><code> First line here
Second line
Third line
etc
</code></pre>

Browser

Im using Chrome, but this looks like an issue from the html.

matiasvlevi avatar May 25 '21 16:05 matiasvlevi

Thanks for the report. We will check it out as soon as possible.

idoshamun avatar May 26 '21 07:05 idoshamun

Hi @idoshamun Is this being worked on by someone, If not can you assign it to me I want to work on it.

orpic avatar Sep 13 '23 09:09 orpic

Hi @orpic,

This is part of our blog, which is built on webflow. So it's not possible to contribute. Thanks a lot!

idoshamun avatar Sep 18 '23 08:09 idoshamun