Skip to content

Commit 7062964

Browse files
committed
Move linebreak formatter to only activate in Captures (#25)
1 parent 7d71069 commit 7062964

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "quickadd",
33
"name": "QuickAdd",
4-
"version": "0.2.6",
4+
"version": "0.2.7",
55
"minAppVersion": "0.12.00",
66
"description": "Quickly add new pages or content to your vault.",
77
"author": "Christian B. B. Houmann",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "quickadd",
3-
"version": "0.2.6",
3+
"version": "0.2.7",
44
"description": "Quickly add new pages or content to your vault.",
55
"main": "main.js",
66
"scripts": {

src/formatters/captureChoiceFormatter.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ export class CaptureChoiceFormatter extends CompleteFormatter {
3131
}
3232

3333
async formatFileContent(input: string): Promise<string> {
34-
const formatted = await super.formatFileContent(input);
34+
let formatted = await super.formatFileContent(input);
35+
formatted = this.replaceLinebreakInString(formatted);
3536

3637
if (this.choice.prepend)
3738
return `${this.fileContent}\n${formatted}`

src/formatters/completeFormatter.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ export class CompleteFormatter extends Formatter {
2626
output = await this.replaceValueInString(output);
2727
output = await this.replaceDateVariableInString(output);
2828
output = await this.replaceVariableInString(output);
29-
output = this.replaceLinebreakInString(output);
3029

3130
return output;
3231
}

versions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"0.2.6": "0.12.4"
2+
"0.2.7": "0.12.4"
33
}

0 commit comments

Comments
 (0)