Skip to content

Commit fc06908

Browse files
authored
never generate folded block scalars when converting URL-imported JSON to YAML (#1750)
1 parent 18d2f55 commit fc06908

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/standalone/topbar/topbar.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,9 @@ export default class Topbar extends React.Component {
101101
.then(res => res.text())
102102
.then(text => {
103103
this.props.specActions.updateSpec(
104-
YAML.safeDump(YAML.safeLoad(text))
104+
YAML.safeDump(YAML.safeLoad(text), {
105+
lineWidth: -1
106+
})
105107
)
106108
})
107109
}

0 commit comments

Comments
 (0)