Skip to content

Incorrect alignment of nested colored output #27540

@HarrisonGrodin

Description

@HarrisonGrodin

When calculating the maximum width for an expression, the show function for AbstractDict fails to take into account the fact that ANSI formatting codes do not take up character space. Thus, the output of other pairs within an AbstractDict can appear to be shifted unnecessarily.

Additionally, when shortening output to fit the screen, the ANSI codes are sometimes be split apart, showing strange filler characters and recoloring the arrow => and remaining output based on the previously-set color.

screenshot

(Note: produced within an xterm-256color terminal.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    display and printingAesthetics and correctness of printed representations of objects.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions