Bug 487513

Summary: KateScrollBar: Scroll text preview does not honor whitespaces at fixed length breaking ascii art
Product: [Applications] kate Reporter: kdebugs
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: REPORTED ---    
Severity: normal CC: christoph, kdebugs, sars
Priority: NOR    
Version First Reported In: 24.02.2   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: screenshot of bug
Ascii art file

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.