From c959e880359f75676982120c0dd9c341581ef5a5 Mon Sep 17 00:00:00 2001 From: hannesrudolph Date: Thu, 7 Aug 2025 07:37:17 -0700 Subject: [PATCH] fix: use CDATA sections in XML examples to prevent parser errors - Fixed the root cause of fast-xml-parser errors by properly escaping content in XML examples - Used CDATA sections for diff content that contains special characters - This prevents the parser from misinterpreting markdown backticks as XML structure --- .../strategies/multi-file-search-replace.ts | 24 +++++++------------ 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/src/core/diff/strategies/multi-file-search-replace.ts b/src/core/diff/strategies/multi-file-search-replace.ts index c71d3c3807..a212cf2b8e 100644 --- a/src/core/diff/strategies/multi-file-search-replace.ts +++ b/src/core/diff/strategies/multi-file-search-replace.ts @@ -139,8 +139,7 @@ Search/Replace content: eg.file.py - -\`\`\` + >>>>>> REPLACE -\`\`\` - +]]> @@ -165,8 +163,7 @@ Search/Replace content with multi edits across multiple files: eg.file.py - -\`\`\` + >>>>>> REPLACE -\`\`\` - +]]> - -\`\`\` + >>>>>> REPLACE -\`\`\` - +]]> eg.file2.py - -\`\`\` + >>>>>> REPLACE -\`\`\` - +]]>