Skip to content

Dedent built-in algorithm source in the editor - #69

Merged
skratchdot merged 1 commit into
mainfrom
dedent-algorithm-editor
Sep 9, 2026
Merged

skratchdot merged 1 commit into
mainfrom
dedent-algorithm-editor

Conversation

@skratchdot

Copy link
Copy Markdown
Owner

Remove the two-space function-wrapper indentation and surrounding whitespace when loading built-in algorithms into Ace. Top-level statements start at column zero and nested indentation stays intact. Preserve custom source whitespace, including multiline string contents.

Uses a small string transformation with no formatter dependency or Ace extension.

Validation:

  • pnpm run check passed, including 353 Vitest tests and the production build.
  • The browser regression check verifies indentation and edits, saves, and executes all eight built-in algorithms successfully.
  • Formatting and git whitespace checks passed.

@skratchdot
skratchdot merged commit 294d590 into main Sep 9, 2026
1 check 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.

1 participant