From 981718973df16031acc6245aa83eb2c1964648cc Mon Sep 17 00:00:00 2001 From: Juliet Date: Tue, 10 Mar 2026 15:27:53 +0100 Subject: [PATCH] preserve whitespace in lexicon descriptions --- src/components/lexicon-schema.tsx | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/src/components/lexicon-schema.tsx b/src/components/lexicon-schema.tsx index b49d03c..318a06e 100644 --- a/src/components/lexicon-schema.tsx +++ b/src/components/lexicon-schema.tsx @@ -318,7 +318,7 @@ const PropertyRow = (props: { -

+

{props.property.description}

@@ -475,7 +475,7 @@ const DefSection = (props: { name: string; def: LexiconDef }) => { const hasDefContent = () => props.def.refs || props.def.items || hasConstraints(props.def); return ( - )} @@ -659,7 +665,7 @@ const DefSection = (props: { name: string; def: LexiconDef }) => {
{error.name}
-

+

{error.description}

@@ -731,7 +737,9 @@ export const LexiconSchemaView = (props: { schema: LexiconSchema; authority?: At
-

{props.schema.description}

+

+ {props.schema.description} +

-- 2.51.2