ivan-lednev / obsidian-task-archiver

Archive completed tasks in your Obsidian vault (plus other org-mode-like features)
MIT License
109 stars 12 forks source link

Run ‘Archive tasks in file’ will remove the space at the beginning of each line,this may remove code indentation #56

Closed ribber closed 1 year ago

ribber commented 1 year ago

there is some dataviewjs code in my note,and this bug will remove code indentation

for example

for (var i = 0; i < 10; i++) {
    console.log(123)
}

will become

for (var i = 0; i < 10; i++) {
console.log(123)
}
ivan-lednev commented 1 year ago

Hello, @ribber, please update the plugin, re-check and let me know if this helps.

ribber commented 1 year ago

this bug is fixed,thank you very much