Skip to content

Commit

Permalink
fix: Fix code component line-break issue
Browse files Browse the repository at this point in the history
Signed-off-by: Souptik Datta <[email protected]>
  • Loading branch information
Souptik2001 committed Oct 28, 2023
1 parent a9bd796 commit f25b0ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/GutenbergParser/Code/Code.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const Code = ({block, ...props}) => {
position="relative"
{...props}
>
<code className="no-code-style">{he.decode(block.attributes.content)}</code>
<code style={{ whiteSpace: 'pre-line' }} className="no-code-style">{he.decode(block.attributes.content)}</code>
<Box
display="flex"
justifyContent="center"
Expand Down

1 comment on commit f25b0ea

@vercel
Copy link

@vercel vercel bot commented on f25b0ea Oct 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.