Skip to content

Commit 1067a95

Browse files
committed
Fixed rendering of info
1 parent ec5e3e5 commit 1067a95

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

Eplant/views/WorldEFP/InfoContent.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,14 @@ const InfoContent = ({ id, mean, std, sampleSize }: InfoContentProps) => {
1111
return (
1212
<StyledInfoContent>
1313
<p>
14-
<strong>{id}</strong>
14+
<strong>
15+
{id.split(/<br\s*\/?>/i).map((line, i, arr) => (
16+
<span key={i}>
17+
{line}
18+
{i < arr.length - 1 && <br />}
19+
</span>
20+
))}
21+
</strong>
1522
</p>
1623
<p>Mean: {mean.toFixed(2)}</p>
1724
<p>Standard error: {std.toFixed(2)}</p>

0 commit comments

Comments
 (0)