Skip to content

Commit

Permalink
fix #59 which pointed out that spaces in the yaml can mess with other…
Browse files Browse the repository at this point in the history
… plugins
  • Loading branch information
kinabalu committed Oct 28, 2024
1 parent 92bf503 commit 4d1e991
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -396,11 +396,11 @@ export default class VoiceNotesPlugin extends Plugin {
// Add default metadata or ensure recording_id is present
if (this.settings.useDefaultFrontmatter) {
const metadata = `---
recording_id: ${recording.recording_id}
duration: ${formatDuration(recording.duration)}
created_at: ${formatDate(recording.created_at, this.settings.dateFormat)}
updated_at: ${formatDate(recording.updated_at, this.settings.dateFormat)}
${formatTags(recording)}
recording_id: ${recording.recording_id}
duration: ${formatDuration(recording.duration)}
created_at: ${formatDate(recording.created_at, this.settings.dateFormat)}
updated_at: ${formatDate(recording.updated_at, this.settings.dateFormat)}
${formatTags(recording)}
---\n`;

note = metadata + note;
Expand Down

0 comments on commit 4d1e991

Please sign in to comment.