10
310
Fork
You've already forked codeberg-cli
33

berg issue list borked output #164

Closed
opened 2025年01月10日 09:44:53 +01:00 by nicoco · 1 comment

Something is wrong with the way the table is rendered. This is using Konsole as terminal emulator, fish as shell (switching to bash does not help), and sway as window manager, all from debian bookworm.

$ berg issue list
┌──────────────────────────────────────────────────────────────────────────────┐
│ Issues │
╞══════════════════════════════════════════════════════════════════════════════╡
│ ┌───────────────────┬───────────────────┬───────────────────┬─────────────── │
│ ────┐ │
│ │ Number ┆ Status ┆ Name ┆ Labels │
│ │ │
│ ╞═══════════════════╪═══════════════════╪═══════════════════╪═══════════════ │
│ ════╡ │
│ │ 36 ┆ Open ┆ Error on startup ┆ bug │
│ │ │
│ ├╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ │
│ ╌╌╌╌┤ │
│ │ 35 ┆ Open ┆ Sticker pack ┆ │
│ enhancement,XEP │ │
│ │ ┆ ┆ support [migrated ┆ │
│ │ │
│ │ ┆ ┆ from sourcehut] ┆ │
│ │ │
│ ├╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ │
│ ╌╌╌╌┤ │
│ │ 34 ┆ Open ┆ XEP-0196: User ┆ │
│ enhancement,XEP │ │
[...]

Using -w 150 does indeed enlarge the table, but the rendering is still broken

> berg -w 150 issue list
┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Issues │
╞════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╡
│ ┌─────────────────────────────────────┬─────────────────────────────────────┬─────────────────────────────────────┬─────────────────────────────── │
│ ──────┐ │
│ │ Number ┆ Status ┆ Name ┆ Labels │
│ │ │
│ ╞═════════════════════════════════════╪═════════════════════════════════════╪═════════════════════════════════════╪═══════════════════════════════ │
│ ══════╡ │
│ │ 36 ┆ Open ┆ Error on startup ┆ bug │
│ │ │
│ ├╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ │
│ ╌╌╌╌╌╌┤ │
│ │ 35 ┆ Open ┆ Sticker pack support [migrated from ┆ enhancement,XEP │
│ │ │
│ │ ┆ ┆ sourcehut] ┆ │
│ │ │
[...]

The font I use is called "Hack", I don't think it matters but maybe?

Something is wrong with the way the table is rendered. This is using Konsole as terminal emulator, fish as shell (switching to bash does not help), and sway as window manager, all from debian bookworm. ```shell $ berg issue list ┌──────────────────────────────────────────────────────────────────────────────┐ │ Issues │ ╞══════════════════════════════════════════════════════════════════════════════╡ │ ┌───────────────────┬───────────────────┬───────────────────┬─────────────── │ │ ────┐ │ │ │ Number ┆ Status ┆ Name ┆ Labels │ │ │ │ │ ╞═══════════════════╪═══════════════════╪═══════════════════╪═══════════════ │ │ ════╡ │ │ │ 36 ┆ Open ┆ Error on startup ┆ bug │ │ │ │ │ ├╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ │ │ ╌╌╌╌┤ │ │ │ 35 ┆ Open ┆ Sticker pack ┆ │ │ enhancement,XEP │ │ │ │ ┆ ┆ support [migrated ┆ │ │ │ │ │ │ ┆ ┆ from sourcehut] ┆ │ │ │ │ │ ├╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ │ │ ╌╌╌╌┤ │ │ │ 34 ┆ Open ┆ XEP-0196: User ┆ │ │ enhancement,XEP │ │ [...] ``` Using `-w 150` does indeed enlarge the table, but the rendering is still broken ```shell > berg -w 150 issue list ┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ │ Issues │ ╞════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╡ │ ┌─────────────────────────────────────┬─────────────────────────────────────┬─────────────────────────────────────┬─────────────────────────────── │ │ ──────┐ │ │ │ Number ┆ Status ┆ Name ┆ Labels │ │ │ │ │ ╞═════════════════════════════════════╪═════════════════════════════════════╪═════════════════════════════════════╪═══════════════════════════════ │ │ ══════╡ │ │ │ 36 ┆ Open ┆ Error on startup ┆ bug │ │ │ │ │ ├╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ │ │ ╌╌╌╌╌╌┤ │ │ │ 35 ┆ Open ┆ Sticker pack support [migrated from ┆ enhancement,XEP │ │ │ │ │ │ ┆ ┆ sourcehut] ┆ │ │ │ │ [...] ``` The font I use is called "Hack", I don't think it matters but maybe?

same here,

$ berg --version
codeberg-cli 0.4.7

(NOTE: there's no -w argument on this version)
with berg pull list I get

┌───────────────────────────────────────────────────────────────────────────┐
│ Pull Requests │
╞═══════════════════════════════════════════════════════════════════════════╡
│ ┌──────────────────┬──────────────────┬──────────────────┬─────────────── │
│ ───┐ │
│ │ Number ┆ Status ┆ Name ┆ Labels │
│ │ │
│ ╞══════════════════╪══════════════════╪══════════════════╪═══════════════ │
│ ═══╡ │
│ │ 59 ┆ Closed ┆ confy ┆ x │
│ │ │
│ ├╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ │
│ ╌╌╌┤ │
│ │ 58 ┆ Closed ┆ refactor: ┆ x │
│ │ │
│ │ ┆ ┆ splitting api ┆ │
│ │ │
│ │ ┆ ┆ and client into ┆ │
│ │ │
│ │ ┆ ┆ seperate crates ┆ │
│ │ │
│ ├╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ │
│ ╌╌╌┤ │
│ │ 57 ┆ Closed ┆ version bump ┆ x │
│ │ │
│ ├╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ │
│ ╌╌╌┤ │
│ │ 56 ┆ Closed ┆ new login ┆ x │
│ │ │
│ ├╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ │
│ ╌╌╌┤ │
│ │ 55 ┆ Closed ┆ WIP: fix: ┆ x │
│ │ │
│ │ ┆ ┆ implemented new ┆ │
│ │ │
│ │ ┆ ┆ login ┆ │
│ │ │
│ └──────────────────┴──────────────────┴──────────────────┴─────────────── │
│ ───┘ │
└───────────────────────────────────────────────────────────────────────────┘

system info

OS: Arch Linux ARM aarch64
Kernel: Linux 6.12.10-asahi-2-1-ARCH
Shell: fish 3.7.1
Display (eDP-1): 2560x1600 @ 60 Hz (as 1280x800) in 13" [Built-in]
WM: Sway 1.10.1 (Wayland)
Cursor: Adwaita
Terminal: alacritty 0.15.0
Terminal Font: Recursive Mono Duotone (13.2pt)
Locale: en_US.UTF-8
same here, ```console $ berg --version codeberg-cli 0.4.7 ``` (*NOTE*: there's no `-w` argument on this version) with `berg pull list` I get ```console ┌───────────────────────────────────────────────────────────────────────────┐ │ Pull Requests │ ╞═══════════════════════════════════════════════════════════════════════════╡ │ ┌──────────────────┬──────────────────┬──────────────────┬─────────────── │ │ ───┐ │ │ │ Number ┆ Status ┆ Name ┆ Labels │ │ │ │ │ ╞══════════════════╪══════════════════╪══════════════════╪═══════════════ │ │ ═══╡ │ │ │ 59 ┆ Closed ┆ confy ┆ x │ │ │ │ │ ├╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ │ │ ╌╌╌┤ │ │ │ 58 ┆ Closed ┆ refactor: ┆ x │ │ │ │ │ │ ┆ ┆ splitting api ┆ │ │ │ │ │ │ ┆ ┆ and client into ┆ │ │ │ │ │ │ ┆ ┆ seperate crates ┆ │ │ │ │ │ ├╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ │ │ ╌╌╌┤ │ │ │ 57 ┆ Closed ┆ version bump ┆ x │ │ │ │ │ ├╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ │ │ ╌╌╌┤ │ │ │ 56 ┆ Closed ┆ new login ┆ x │ │ │ │ │ ├╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ │ │ ╌╌╌┤ │ │ │ 55 ┆ Closed ┆ WIP: fix: ┆ x │ │ │ │ │ │ ┆ ┆ implemented new ┆ │ │ │ │ │ │ ┆ ┆ login ┆ │ │ │ │ │ └──────────────────┴──────────────────┴──────────────────┴─────────────── │ │ ───┘ │ └───────────────────────────────────────────────────────────────────────────┘ ``` system info ```console OS: Arch Linux ARM aarch64 Kernel: Linux 6.12.10-asahi-2-1-ARCH Shell: fish 3.7.1 Display (eDP-1): 2560x1600 @ 60 Hz (as 1280x800) in 13" [Built-in] WM: Sway 1.10.1 (Wayland) Cursor: Adwaita Terminal: alacritty 0.15.0 Terminal Font: Recursive Mono Duotone (13.2pt) Locale: en_US.UTF-8 ```
Sign in to join this conversation.
No Branch/Tag specified
main
v0.5.1
v0.5.0
v0.4.11
v0.4.10
v0.4.9
v0.4.8
v0.4.7
v0.4.6
v0.4.5
v0.4.4
v0.4.3
v0.4.1
v0.4.2
v0.4.0
v0.3.5
v0.3.4
v0.3.2
v0.3.1
v0.3.0
v0.2.1
v0.2.0
v0.1.1
v0.1.0
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Aviac/codeberg-cli#164
Reference in a new issue
Aviac/codeberg-cli
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?