Skip to content

Commit

Permalink
Fix multiline smart-knit (#1493)
Browse files Browse the repository at this point in the history
Fix smart-knit failing when using a multi-line knit parameter
  • Loading branch information
ElianHugh authored Feb 27, 2024
1 parent 54f924c commit 26d72d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rmarkdown/knit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export class RMarkdownKnitManager extends RMarkdownManager {
// precedence:
// knit > site > configuration
if (yamlParams?.['knit']) {
const knitParam = yamlParams['knit'];
const knitParam = yamlParams['knit'].trim();
knitCommand = outputFormat ?
`${knitParam}(${docPath}, output_format = '${outputFormat}')` :
`${knitParam}(${docPath})`;
Expand Down

0 comments on commit 26d72d0

Please sign in to comment.