-
Notifications
You must be signed in to change notification settings - Fork 288
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Archiving tasks with indented notes underneath removes indentation #433
Comments
Ideally, this is what I'd expect to see:
|
It is probably because of |
Thanks for the quick response. Unfortunately I am still not seeing quite the behavior I would expect with that setting set to different values. The whitespace for the lines under my tasks isn't being left alone. For reference, my personal settings file is this:
But I will remove
|
Yes, the archiving command simply strips leading and trailing whitespaces as Lines 435 to 455 in 8edb770
The issue with maintaining whole indentations is that you would have to check if the task have higher indent level than one, i.e. the task can be a subtask of a subtask of a task of a subproject of a subproject of a project—so the level of indent would be six:
but under the archive it should be level one of indent:
So we probably could match the indent of the task and then replace it with empty string for each note line (but only once for each because a note may contain whitespace in its middle for aligning and such), but then the problem could be with mixed indents if there are used whitespaces and tabs, which I guess we could ignore for simplicity. |
ahh, yes, I see how that would make things difficult. Thanks for the reply! I am not an expert python programmer but I may try to take some time to work on this enhancement. |
My task looks like this:
When I am done with "my test task" and archive it, here's what I get:
As you can see, my task notes are no longer indented.
Is this intended behavior? If not, can it be fixed?
The text was updated successfully, but these errors were encountered: