Skip to content

fix(reporting): normalize 2-space list indentation for nested rendering#126

Merged
ChristopherJHart merged 1 commit into
mainfrom
fix/markdown-nested-list-indentation
May 30, 2026
Merged

fix(reporting): normalize 2-space list indentation for nested rendering#126
ChristopherJHart merged 1 commit into
mainfrom
fix/markdown-nested-list-indentation

Conversation

@ChristopherJHart
Copy link
Copy Markdown
Contributor

Summary

  • Python-Markdown requires 4 spaces for nested list items, but Jinja2 templates naturally use 2-space indentation
  • Add a pre-processor in _render_markdown() that doubles indentation on list markers so nested bullets render as proper nested <ul> elements
  • Template authors can write - sub-item (2 spaces) and it renders correctly

Test plan

  • All 424 existing tests pass
  • Verified: - Parent:\n - Child: now renders as nested <ul><li> instead of a flat list
  • Visually verify in HTML report: sub-bullets under device names are properly indented

🤖 Generated with Claude Code

Python-Markdown requires 4 spaces for nested list items, but Jinja2
templates naturally use 2-space indentation. Add a pre-processor that
doubles indentation on list markers so nested bullets render as proper
nested HTML lists.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@ChristopherJHart ChristopherJHart merged commit 31d5153 into main May 30, 2026
24 checks passed
@ChristopherJHart ChristopherJHart deleted the fix/markdown-nested-list-indentation branch May 30, 2026 15:29
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.

1 participant