Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add indentation support of tables inside lists #47

Closed
darkriszty opened this issue Dec 11, 2020 · 2 comments
Closed

Add indentation support of tables inside lists #47

darkriszty opened this issue Dec 11, 2020 · 2 comments
Assignees
Milestone

Comments

@darkriszty
Copy link
Owner

When tables are inside lists they lose their indentation after formatting. A left pad / indentation has to be supported when the table has at least a left border in the output (|).

Expected behavior for mixed indentation scenarios:

  • When at least half the rows have indentation, use indentation in the output.
  • When different indentation styles are used, use the one that is most frequent in the output.

  • Sample input
    * List item
        |Type | Range| Size|
        |-|-|-|
        |sbyte | -128 to 127| Signed 8-bit integer|
        |byte| 0 to 255| Unsigned 8-bit integer|
        |char| U+0000 to U+ffff|	Unicode 16-bit character|
    
  • Current output
    * List item
    | Type  | Range            | Size                     |
    |-------|------------------|--------------------------|
    | sbyte | -128 to 127      | Signed 8-bit integer     |
    | byte  | 0 to 255         | Unsigned 8-bit integer   |
    | char  | U+0000 to U+ffff | Unicode 16-bit character |
    
  • Expected output
    * List item
        | Type  | Range            | Size                     |
        |-------|------------------|--------------------------|
        | sbyte | -128 to 127      | Signed 8-bit integer     |
        | byte  | 0 to 255         | Unsigned 8-bit integer   |
        | char  | U+0000 to U+ffff | Unicode 16-bit character |
    
@darkriszty darkriszty self-assigned this Dec 11, 2020
@darkriszty darkriszty added this to the Release 3.2.0 milestone Dec 11, 2020
@darkriszty
Copy link
Owner Author

Included in v3.2.0

@magnetikonline
Copy link

Thanks for this @darkriszty 👍

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants