Merge pull request #1543 from DhruvTilva/fix/codeblock-interior-line-indentation

fix: prevent spurious leading spaces in nested codeBlock interior lines
This commit is contained in:
Rohan Verma 2026-06-29 17:45:21 -07:00 committed by GitHub
commit 32951ac141
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -145,7 +145,7 @@ def _render_block(
code_text = _render_inline_content(content) if content else ""
lines.append(f"{prefix}```{language}")
for code_line in code_text.split("\n"):
lines.append(f"{prefix}{code_line}")
lines.append(code_line)
lines.append(f"{prefix}```")
elif block_type == "table":