SUPERCILEX / clipboard-history

Ringboard—the clipboard manager for Linux
Apache License 2.0
143 stars 5 forks source link

Unable to display format of type "". ASCII art #25

Closed leviska closed 4 weeks ago

leviska commented 1 month ago

Ringboard can't preview weird ascii arts, like this (random from the internet)

⣿⣿⣿⣿⣿⣿⡿⠿⠿⠿⠿⠿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿
⣿⣿⣿⣿⣿⡏⠄⠄⠄⠄⠄⠄⠄⣿⣿⣿⣿⣿⣿⣿⣿⠃⠄⠄⠄⠄⠄⠄⠈⣿
⣿⣿⣿⣿⣿⡇⠄⠄⠄⠄⠄⠄⠄⣿⣿⣿⣿⣿⣿⣿⣿⠄⠄⣿⣿⣿⣿⡄⠄⣿
⣿⣿⣿⣿⣿⡇⠄⠄⠄⠄⠄⠄⠄⣿⣿⣿⣿⣿⣿⣿⣿⠄⠄⣿⣿⣿⣿⡇⠄⣿
⣿⣿⣿⣿⣿⣿⣦⣀⠄⠄⠄⣠⣾⣿⣿⣿⣿⣿⣿⣿⡟⠄⠄⣿⣿⣿⣿⡇⠄⣿
⣿⣿⣿⣿⣿⡿⠿⠿⠄⠄⠄⠿⢿⣿⣿⣿⣿⣿⣿⣿⣇⠄⠄⣿⣿⣿⣿⡇⠄⣿
⣿⣿⡿⠟⠉⠄⠄⠄⠄⠄⠄⠄⠄⠄⠙⠻⣿⣿⣿⣿⡟⠄⠄⠉⠉⠉⠉⠄⠄⣿
⣿⣿⣥⣤⣤⣤⣤⣤⣤⣤⣤⣤⣤⣤⣤⣤⣼⣿⣿⣿⣿⣶⣶⣶⣶⣶⣶⣶⣿⣿

If you copy some parts, it shows okay, but at some point it stops

This is how it's shows the error image

Some "art" to test if you want (might be NSFW) https://www.twitchquotes.com/copypastas/labels/classic?ascii-art=true

SUPERCILEX commented 4 weeks ago

What version are you on? I actually just fixed a bug like that a few days ago. v0.5.3 has the fix. You can manually upgrade with cargo +nightly install clipboard-history-egui --no-default-features --features $XDG_SESSION_TYPE but I'd recommend using https://github.com/nabijaczleweli/cargo-update and running cargo install-update -a.

leviska commented 4 weeks ago

yep, fixed, thanks!