Skip to content

Fix: Ensure correct indentation for XML replacement lines#330

Merged
vicsanity623 merged 1 commit into
mainfrom
pyob-evolution-v11-1779964608
May 28, 2026
Merged

Fix: Ensure correct indentation for XML replacement lines#330
vicsanity623 merged 1 commit into
mainfrom
pyob-evolution-v11-1779964608

Conversation

@pyob-bot
Copy link
Copy Markdown
Collaborator

Summary of Changes

This PR introduces an indentation correction mechanism when applying XML replacements in ApplyXMLMixin. By invoking _fix_replace_indentation before updating the code lines, the patch ensures that the injected content maintains consistent formatting with the surrounding codebase.

Technical Impact

  • Improved Code Quality: Prevents malformed XML/code structures caused by mismatched indentation levels during the replacement process.
  • Logic Update: The new_code_lines construction now utilizes the processed fixed_replace string, ensuring that the replacement block respects the context of the original file's indentation.

Base automatically changed from pyob-evolution-v6-1779961337 to main May 28, 2026 11:22
@vicsanity623 vicsanity623 merged commit 7b2ebfb into main May 28, 2026
1 check passed
@vicsanity623 vicsanity623 deleted the pyob-evolution-v11-1779964608 branch May 28, 2026 11:22
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