Skip to content

Fix spurious indentation in prompt()#11

Merged
rasbt merged 2 commits intorasbt:mainfrom
pierre-allain-ds:fix/prompt-indentation
Apr 7, 2026
Merged

Fix spurious indentation in prompt()#11
rasbt merged 2 commits intorasbt:mainfrom
pierre-allain-ds:fix/prompt-indentation

Conversation

@pierre-allain-ds
Copy link
Copy Markdown
Contributor

Fix inconsistent indentation in prompt-building methods caused by textwrap.dedent on f-strings containing multi-line substitutions. The common indent was always 0, so nothing got stripped. Replaced with explicit string joining

Before:
image

After
image

@rasbt
Copy link
Copy Markdown
Owner

rasbt commented Apr 7, 2026

LGTM, thanks. Made some modifications as we might as well get rid of textwrap then entirely.

@rasbt rasbt merged commit 717cae4 into rasbt:main Apr 7, 2026
6 checks 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.

2 participants