Bug 249156

Summary: Tabulator space in text file preview way too big.
Product: [Frameworks and Libraries] kio Reporter: Kai Uwe Broulik <KaiUweBroulik2>
Component: thumbnailAssignee: Christoph Feck <cfeck>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: SVN   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In: 4.6.0
Attachments: Showing dolphin's preview pane

Description Kai Uwe Broulik 2010-08-27 01:01:53 UTC
Created attachment 50994 [details]
Showing dolphin's preview pane

Version:           SVN (using KDE 4.5.0) 
OS:                Linux

If you hover over a text file (or php script or anything text-ish) or you have text file preview enabled, you'll find that the tabulator is way too big.
Lines beginning with a tabulator are almost out of the icon and it it quite unusable for code, which mostly uses tabulators.
Tabulator is almost 14 characters wide in preview.

Reproducible: Always
Comment 1 Christoph Feck 2010-09-12 15:20:46 UTC
SVN commit 1174452 by cfeck:

Fix tab width in text thumbnails

The width of a tab character should be set to the same size as
eight space characters.

Additionally, use a fixed-width font only when formatting with
white space is used in the middle of the text lines, making files
that use multiple spaces or tabs for identation more readable.

BUG: 249156
FIXED-IN: 4.6.0


 M  +11 -4     textcreator.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1174452