Skip to content

Commit

Permalink
Render Command Newline added (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
tarun-kavipurapu authored Oct 9, 2024
1 parent efdc10d commit 1feedd2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion apps/playground-web/components/Shell/Shell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,12 @@ export default function Shell({ decreaseCommandsLeft }: ShellProps) {
data-testid="terminal-output"
className="text-white p-1"
>
{line}
{line.split('\n').map((subLine, subIndex, arr) => (
<span key={subIndex}>
{subLine}
{subIndex < arr.length - 1 && <br />}
</span>
))}
</div>
))}
<div className="flex items-center">
Expand Down

0 comments on commit 1feedd2

Please sign in to comment.