Skip to content

Commit

Permalink
Moves mermaid gantt above list re #4
Browse files Browse the repository at this point in the history
  • Loading branch information
lynchjames committed Nov 7, 2020
1 parent 5718581 commit 52ba6f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/planner-md.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export default class PlannerMarkdown {
});

const mermaidResult = this.settings.mermaid ? this.mermaid.generate(planSummary).split('\n') : [];
const newFileContents = fileContents.slice(0, startLine).concat(results).concat(mermaidResult).concat(fileContents.slice(endLine));
const newFileContents = fileContents.slice(0, startLine).concat(mermaidResult).concat(results).concat(fileContents.slice(endLine));
this.file.updateFile(filePath, newFileContents.join('\n'));
} catch (error) {
console.log(error);
Expand Down

0 comments on commit 52ba6f8

Please sign in to comment.