mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Split separate lines of schema descriptions but good (#762)
did idiot's thing but properly do line breaks
This commit is contained in:
commit
1aee1a9ea8
@ -22,7 +22,7 @@ const refSlug = SchemaTools.getRefSlug(schema);
|
||||
const enumVals = SchemaTools.getEnumValues(schema);
|
||||
const props = SchemaTools.getProps(schema, level);
|
||||
|
||||
const descSplit = description?.toString().split(" \n").map(l => l.trim()).filter(l => l.length !== 0);
|
||||
const descSplit = description?.toString().split("\n");
|
||||
|
||||
const HeadingTag = levelMap[level] ?? "h6";
|
||||
---
|
||||
@ -62,7 +62,7 @@ const HeadingTag = levelMap[level] ?? "h6";
|
||||
</div>
|
||||
)
|
||||
}
|
||||
{descSplit?.map(l => <p>{l}</p>) ?? <p>No Description Found</p>}
|
||||
<p>{descSplit?.map(l => <>{l}<br></>) ?? <>No Description Found</>}</p>
|
||||
{
|
||||
enumVals.length !== 0 && (
|
||||
<>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user