Skip to content

maxcolwidths line break issue when using tablefmt #336

Open

Description

@kopes18

maxcolwidths=10

expect behaviours when tablefmt='simple'

    color        value    row
--  ---------  -------  -----
 0  redred         1.2      0
    redred
    redredr
    edredred
    redredred
 1  green          1        1
 2  red            0        2
 3  green          1        3
 4  red            2        4

when tablefmt='fancy_outline'

╒════╤═════════╤═════════╤═══════╕
│    │ color   │   value │   row │
╞════╪═════════╪═════════╪═══════╡
│  0 │ redred
redred
redredr
edredred
redredred         │     1.2 │     0 │
│  1 │ green   │     1   │     1 │
│  2 │ red     │     0   │     2 │
│  3 │ green   │     1   │     3 │
│  4 │ red     │     2   │     4 │
╘════╧═════════╧═════════╧═══════╛

Activity

  1. changed the title [-][bug] maxcolwidths line break issue when using tablefmt[/-] [+][feature request] maxcolwidths line break issue when using tablefmt[/+] on Aug 9, 2024
  2. dave-doty commented on Aug 24, 2024

    @dave-doty

    I just ran into the exact same issue. Multiline entries (whether created through the maxcolwidths argument, or just by directly inserting newlines into an entry) seem to be supported for tablefmt "simple" and "grid", and not anything else I can find. I tried "github" and "rounded_outline" and they both look like the second example above.

    I see it was changed from "Bug" to "Feature Request". So perhaps it is not intended to be supported for anything but these two tablefmt's, though that is not stated at all in the documentation.

  3. astanin commented on Mar 5, 2026

    @astanin
    Owner

    Is this still valid in v0.10.0?

  4. added
    question
    on Mar 5, 2026
  5. changed the title [-][feature request] maxcolwidths line break issue when using tablefmt[/-] [+]maxcolwidths line break issue when using tablefmt[/+] on Mar 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    question

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions