Skip to content

[pp] Keep line accounting intact for multi-line object reprs#418

Open
bbatsov wants to merge 1 commit into
masterfrom
pp-multiline-object-reprs
Open

[pp] Keep line accounting intact for multi-line object reprs#418
bbatsov wants to merge 1 commit into
masterfrom
pp-multiline-object-reprs

Conversation

@bbatsov

@bbatsov bbatsov commented Jul 15, 2026

Copy link
Copy Markdown
Member

A value whose representation spans multiple lines (e.g. a custom print-method rendering a table) was written to the count-keeping writer in one shot. The column counter absorbed the whole string, so everything after it on the parent form was forced into miser mode, and the continuation lines themselves lost their indentation. Writing such representations line by line fixes both.

Split out of #417.

A value whose representation spans multiple lines (e.g. a custom
print-method rendering a table) was written in one shot: the column
counter absorbed the whole string, forcing everything after it into
miser mode, and continuation lines lost their indentation. Write such
representations line by line instead.
@bbatsov
bbatsov force-pushed the pp-multiline-object-reprs branch from a2f54f8 to 0fa91a7 Compare July 15, 2026 16:12
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.

1 participant