Skip to content

AST builder: preserve multiline callback Python code formatting #3

Description

@YasiruRF

Problem

Callback body extraction may lose indentation/newline fidelity for embedded Python blocks.

Proposed change

  • Ensure callback body capture preserves original multiline formatting and indentation.
  • Validate behavior for nested blocks and blank lines.

Acceptance criteria

  • Generated callback code matches source formatting semantics.
  • Add tests for multiline callback blocks with nested control flow.
  • No regressions in existing callback tests.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions