-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Open
Description
Have you checked closed issues? (https://github.com/Textualize/textual/issues?q=is%3Aissue+is%3Aclosed)
Yes
Have you checked against the most recent version of Textual? (https://pypi.org/search/?q=textual)
Yes
The bug
Markdown rendering of tables does not handle right-justification.
':' characters in the header line dashes should apply left/right/center justification of the header text and column content.
|-----| no justification
|:----| left justification
|----:| right justification
|:----:| center justification
You can reproduce this by running the logmerger logmerger --demo command, and open the "info" dialog.
Here is a sample markdown table with justification settings:
| Dependency | Version | Center | Left | Right |
|-------------|-------|:------:|:-----|------:|
| textual | 6.4.0 |Y| xyz | 123 |
| littletable | 3.0.2 |N| abc | def |
Textual diagnose output:
Textual Diagnostics
Versions
| Name | Value |
|---|---|
| Textual | 6.4.0 |
| Rich | 14.2.0 |
Python
| Name | Value |
|---|---|
| Version | 3.12.10 |
| Implementation | CPython |
| Compiler | MSC v.1943 64 bit (AMD64) |
| Executable | C:\Users\ptmcg\venvs\log_merger\Scripts\python.exe |
Operating System
| Name | Value |
|---|---|
| System | Windows |
| Release | 11 |
| Version | 10.0.26200 |
Terminal
| Name | Value |
|---|---|
| Terminal Application | Windows Terminal |
| TERM | Not set |
| COLORTERM | Not set |
| FORCE_COLOR | Not set |
| NO_COLOR | Not set |
Rich Console options
| Name | Value |
|---|---|
| size | width=120, height=30 |
| legacy_windows | False |
| min_width | 1 |
| max_width | 120 |
| is_terminal | True |
| encoding | utf-8 |
| max_height | 30 |
| justify | None |
| overflow | None |
| no_wrap | False |
| highlight | None |
| markup | None |
| height | None |
Metadata
Metadata
Assignees
Labels
No labels