Skip to content

Commit

Permalink
fix(user templates): removing right trailing newlines from user commands
Browse files Browse the repository at this point in the history
closes #108, re #92
  • Loading branch information
SilentVoid13 committed Apr 14, 2021
1 parent eea766f commit 387d274
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/UserTemplates/UserTemplateParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export class UserTemplateParser extends TParser {
};

let {stdout} = await exec_promise(cmd, cmd_options);
return stdout;
return stdout.trimRight();
}
catch(error) {
this.plugin.log_error(`Error with User Template ${template}`, error);
Expand Down

0 comments on commit 387d274

Please sign in to comment.