Skip to content

Commit

Permalink
fix: remove new lines from inputs (#272)
Browse files Browse the repository at this point in the history
  • Loading branch information
btkostner committed Oct 20, 2022
1 parent 0bbafa9 commit dbdbd50
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/action-docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,12 @@ function getInputOutput(
rows[i].push(
value.required ? `\`${String(value.required)}\`` : "`false`"
);
rows[i].push(value.default !== undefined ? value.default : "");

if (value.default !== undefined) {
rows[i].push(value.default.toString().replace(/\r\n|\r|\n/g, " "));
} else {
rows[i].push("");
}
}
}
return { headers, rows };
Expand Down

0 comments on commit dbdbd50

Please sign in to comment.