From 77e3c280ef4937ea099eec91b5640c9995a2d0b4 Mon Sep 17 00:00:00 2001 From: Bernt Christian Egeland Date: Sat, 16 Mar 2024 23:42:33 +0100 Subject: [PATCH] newline --- src/pages/organization/[orgid].tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/pages/organization/[orgid].tsx b/src/pages/organization/[orgid].tsx index 14bd72fb..0878eaae 100644 --- a/src/pages/organization/[orgid].tsx +++ b/src/pages/organization/[orgid].tsx @@ -131,7 +131,11 @@ const OrganizationById = ({ user, orgIds }) => { className="border-l-4 border-primary p-2 leading-snug" style={{ caretColor: "transparent" }} > - {orgData?.description} + {/* add newline support if description has newlines */} + {orgData?.description.split("\n").map((str, index) => ( + // biome-ignore lint/suspicious/noArrayIndexKey: +

{str}

+ ))} ) : null}