File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ export default function Result({
2727 const isCode = ! ! lang && lang !== "plaintext" && ! ! result
2828
2929 const innerContent = isCode ? (
30- < Code block = { result } language = { lang } wrap = { false } />
30+ < Code block = { result } language = { lang } />
3131 ) : (
3232 < Value > { result } </ Value >
3333 )
Original file line number Diff line number Diff line change @@ -7,6 +7,10 @@ export default function ModelItems({
77 block : import ( "../../../pdl_ast" ) . DataBlock
88} ) {
99 return (
10- < Result result = { stringify ( result ) } lang = "yaml" term = { def ?? "Struct" } />
10+ < Result
11+ result = { typeof result === "string" ? result . trim ( ) : stringify ( result ) }
12+ lang = { typeof result === "string" ? undefined : "yaml" }
13+ term = { def ?? "Struct" }
14+ />
1115 )
1216}
You can’t perform that action at this time.
0 commit comments