termynal.py icon indicating copy to clipboard operation
termynal.py copied to clipboard

Formatting issue with `rich` panels

Open adam-moss opened this issue 1 year ago • 2 comments

Hi,

Thank you for this plugin, it has been good to see it's rapid evolution over the past couple of weeks 😄

Following the 0.7.0 update there appears to be a formatting issue when using terminal output contained within a rich panel:

Expected:

$ my-cli
 Usage: my-cli [OPTIONS] COMMAND [ARGS]...                                     
                                                                                
╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --about               -a        Show the application about dialog and exit.  │
│ --version             -v        Show the application version and exit.       │
│ --install-completion            Install completion for the current shell.    │
│ --show-completion               Show completion for the current shell, to    │
│                                 copy it or customize the installation.       │
│ --help                          Show this message and exit.                  │
╰──────────────────────────────────────────────────────────────────────────────╯

Actual:

$ my-cli
 Usage: my-cli [OPTIONS] COMMAND [ARGS]...                                     
                                                                                
╭─ Options ────────────────────────────────────────────────────────────────────╮

│ --about               -a        Show the application about dialog and exit. │

│ --version             -v        Show the application version and exit. │

│ --install-completion            Install completion for the current shell. │

│ --show-completion               Show completion for the current shell, to │

│                                 copy it or customize the installation. │

│ --help                          Show this message and exit. │

╰──────────────────────────────────────────────────────────────────────────────╯

The line spacing is probably a css tweak I imagine, the collapsed white-space on the right I'm not too sure about.

Please let me know if you require an further info.

adam-moss avatar Aug 01 '23 09:08 adam-moss