Skip to content

Commit

Permalink
Move linebreak formatter to only activate in Captures (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
chhoumann committed Jun 22, 2021
1 parent 7d71069 commit 7062964
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "quickadd",
"name": "QuickAdd",
"version": "0.2.6",
"version": "0.2.7",
"minAppVersion": "0.12.00",
"description": "Quickly add new pages or content to your vault.",
"author": "Christian B. B. Houmann",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "quickadd",
"version": "0.2.6",
"version": "0.2.7",
"description": "Quickly add new pages or content to your vault.",
"main": "main.js",
"scripts": {
Expand Down
3 changes: 2 additions & 1 deletion src/formatters/captureChoiceFormatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ export class CaptureChoiceFormatter extends CompleteFormatter {
}

async formatFileContent(input: string): Promise<string> {
const formatted = await super.formatFileContent(input);
let formatted = await super.formatFileContent(input);
formatted = this.replaceLinebreakInString(formatted);

if (this.choice.prepend)
return `${this.fileContent}\n${formatted}`
Expand Down
1 change: 0 additions & 1 deletion src/formatters/completeFormatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ export class CompleteFormatter extends Formatter {
output = await this.replaceValueInString(output);
output = await this.replaceDateVariableInString(output);
output = await this.replaceVariableInString(output);
output = this.replaceLinebreakInString(output);

return output;
}
Expand Down
2 changes: 1 addition & 1 deletion versions.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"0.2.6": "0.12.4"
"0.2.7": "0.12.4"
}

0 comments on commit 7062964

Please sign in to comment.