Skip to content

Commit dbdbd50

Browse files
authored
fix: remove new lines from inputs (#272)
1 parent 0bbafa9 commit dbdbd50

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/action-docs.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,12 @@ function getInputOutput(
189189
rows[i].push(
190190
value.required ? `\`${String(value.required)}\`` : "`false`"
191191
);
192-
rows[i].push(value.default !== undefined ? value.default : "");
192+
193+
if (value.default !== undefined) {
194+
rows[i].push(value.default.toString().replace(/\r\n|\r|\n/g, " "));
195+
} else {
196+
rows[i].push("");
197+
}
193198
}
194199
}
195200
return { headers, rows };

0 commit comments

Comments
 (0)