Bug 487513 - KateScrollBar: Scroll text preview does not honor whitespaces at fixed length breaking ascii art
Summary: KateScrollBar: Scroll text preview does not honor whitespaces at fixed length...
Status: REPORTED
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: 24.02.2
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-25 04:43 UTC by kdebugs
Modified: 2024-11-01 19:39 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
screenshot of bug (116.78 KB, image/png)
2024-05-25 04:43 UTC, kdebugs
Details
Ascii art file (42.39 KB, text/x-nfo)
2024-05-25 04:44 UTC, kdebugs
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kdebugs 2024-05-25 04:43:51 UTC
Created attachment 169803 [details]
screenshot of bug

SUMMARY
The scrollbar preview does not render with fixed char length, this breaks ascii art.

STEPS TO REPRODUCE
1. Open a ascii art document (scene release .nfo is a good one)
2. Use the scroll preview on the side to navigate
3. Notice the art looked broken since fixed spaces for white spaces is not respected.

OBSERVED RESULT
Bad ascii art image

EXPECTED RESULT
Nice ascii art image

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.2.0
Qt Version: 6.7.0
Kernel Version: 6.8.9-arch1-2 (64-bit)
Graphics Platform: X11
Comment 1 kdebugs 2024-05-25 04:44:42 UTC
Created attachment 169804 [details]
Ascii art file
Comment 2 Christoph Cullmann 2024-09-15 16:46:33 UTC
Ok, I see, the pixel painted stuff in the scrollbar minimap are off.
Comment 3 Christoph Cullmann 2024-11-01 19:38:52 UTC
KateScrollBar::updatePixmap() has issues with tabs. We not just ignore the configured tab width but the whole loop will not handle tabs well. We skip over chars and we don't align the tabstops.