Skip to content

fix: remove accidental indentation from shell config template strings#435

Merged
dbast merged 3 commits intomainfrom
fix/template-string-indentation
Jan 8, 2026
Merged

fix: remove accidental indentation from shell config template strings#435
dbast merged 3 commits intomainfrom
fix/template-string-indentation

Conversation

@jezdez
Copy link
Member

@jezdez jezdez commented Dec 15, 2025

Fixes #422

The template strings (bashExtraText, powerExtraText, batchExtraText) had 2-space indentation inherited from TypeScript code formatting. This indentation was written to shell config files like .xonshrc, breaking xonsh's Python-based syntax.

Refactored to use array.join() pattern which is immune to auto-formatter indentation changes.

Fixes #422

The template strings (bashExtraText, powerExtraText, batchExtraText) had
2-space indentation inherited from TypeScript code formatting. This
indentation was written to shell config files like .xonshrc, breaking
xonsh's Python-based syntax.

Refactored to use array.join() pattern which is immune to auto-formatter
indentation changes.
@jezdez jezdez requested a review from a team as a code owner December 15, 2025 10:13
@dbast dbast merged commit 574256d into main Jan 8, 2026
101 checks passed
@jaimergp
Copy link
Member

This will need a 2nd pass, xonsh does not recognize set. I'll open a new PR.

@jaimergp
Copy link
Member

See #442

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.

Indented bashExtraText breaks xonsh, doesn't match parent indentation

3 participants