Bug 249158

Summary: Text file preview should not do auto-fitting using linebreaks
Product: [Frameworks and Libraries] kio Reporter: Kai Uwe Broulik <KaiUweBroulik2>
Component: thumbnailAssignee: Unassigned bugs mailing-list <unassigned-bugs>
Status: RESOLVED FIXED    
Severity: wishlist    
Priority: NOR    
Version: SVN   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Showing dolphin's preview pane

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

Version:           SVN (using KDE 4.5.0) 
OS:                Linux

The text preview does automatically fit the first few lines of the previewed file into the small preview area and uses linebreaks.


Reproducible: Always


Actual Results:  
Text gets split up like
* { margin: 0
;
    padding: 
0;
}

Expected Results:  
Should just cut the lines:
* { margin: 0
    padding:
}
So more lines could be displayed
Comment 1 Christoph Feck 2010-08-28 20:20:14 UTC
Unsure if this should be changed, because the text thumbnailer always had wrapping implemented and I think the idea is that you should see "the first n characters" instead of "the first n lines partially".

Needs more voters.
Comment 2 Kai Uwe Broulik 2010-12-06 18:06:36 UTC
In 4.6 the font is at least smaller so more content fits into the preview
Now at least the font is smaller so more content fits into the preview and also the line break is more intelligently.
I‘ll mark it as fixed anyway since it is no longer as annoying as it used to be.