Skip to content

Commit

Permalink
Fix json-to-yaml conversion issue (buerokratt#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
jannostern authored Jun 17, 2024
1 parent e6f6051 commit 49d33de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/conversion.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ router.post("/yaml_to_json", multer().array("file"), (req, res) => {
});

router.post("/json_to_yaml", (req, res) => {
const result = stringify(req.body);
const result = stringify(req.body, { lineWidth: 0 });
res.send({ json: result });
});

Expand Down

0 comments on commit 49d33de

Please sign in to comment.