Skip to content

Commit c2180a3

Browse files
authored
fix issue #6734 (#6735)
* in \[errorCode\].tsx, wrapped parsedContent in a div and applied styling of white-space: pre-wrap to preserve whitespace and break on newline chars * updated styling to tailwind class
1 parent 56ca8f1 commit c2180a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pages/errors/[errorCode].tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export default function ErrorDecoderPage({
3636
}}
3737
routeTree={sidebarLearn as RouteItem}
3838
section="unknown">
39-
{parsedContent}
39+
<div className="whitespace-pre-line">{parsedContent}</div>
4040
{/* <MaxWidth>
4141
<P>
4242
We highly recommend using the development build locally when debugging

0 commit comments

Comments
 (0)