Skip to content

Increase indentation from 2 to 4 spaces in markdown output#65

Merged
bobwhitelock merged 1 commit into
masterfrom
claude/fix-todoist-indentation-5co6F
Apr 11, 2026
Merged

Increase indentation from 2 to 4 spaces in markdown output#65
bobwhitelock merged 1 commit into
masterfrom
claude/fix-todoist-indentation-5co6F

Conversation

@bobwhitelock

Copy link
Copy Markdown
Owner

Summary

Updated the indentation spacing in the markdown output generation to use 4 spaces instead of 2 spaces per indentation level, improving readability of nested content.

Key Changes

  • Changed base indentation unit from 2 spaces (" ") to 4 spaces (" ") for all indentation levels (i0, i1, i2, i3)
  • Updated continuation lines for multi-line comments to use 4-space indentation
  • Updated attachment URL indentation to use 4-space indentation

Implementation Details

The change affects the print_tasks_markdown() function where indentation strings are constructed. All indentation variables now use 4-space increments instead of 2-space increments, ensuring consistent and deeper visual hierarchy in the generated markdown output for tasks, subtasks, comments, and attachments.

https://claude.ai/code/session_019RG2RLTzpkEeM71qrWGQmg

…lity

Obsidian requires 4 spaces per indent level to correctly render nested
list items. Previously the script used 2 spaces which caused indentation
to not be recognised as nested content.

https://claude.ai/code/session_019RG2RLTzpkEeM71qrWGQmg
@bobwhitelock
bobwhitelock merged commit 2649865 into master Apr 11, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants