Skip to content

Commit

Permalink
trim leading whitespace also
Browse files Browse the repository at this point in the history
  • Loading branch information
mxcl committed Nov 13, 2021
1 parent 78f17d7 commit 2dddc40
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26149,7 +26149,8 @@ function templater(template, github) {
github,
env: process.env,
timestamp: Date.now(),
trimBlocks: true
trimBlocks: true,
lstripBlocks: true
};
let { attributes, body } = front_matter__WEBPACK_IMPORTED_MODULE_2___default()(template);
body = env.renderString(body, templateVariables);
Expand Down
3 changes: 2 additions & 1 deletion src/templater.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ export function templater(template: string, github: any): {title: string, body:
github,
env: process.env,
timestamp: Date.now(),
trimBlocks: true
trimBlocks: true,
lstripBlocks: true
}

interface FrontMatterAttributes {
Expand Down

0 comments on commit 2dddc40

Please sign in to comment.