[Konsole-devel] [Bug 188528] konsole's history adds spaces to end of lines when copying text

tomasb at kapsa.cz tomasb at kapsa.cz
Fri Dec 9 21:49:43 UTC 2011


https://bugs.kde.org/show_bug.cgi?id=188528





--- Comment #118 from  <tomasb kapsa cz>  2011-12-09 21:49:43 ---
Created an attachment (id=66565)
 --> (http://bugs.kde.org/attachment.cgi?id=66565)
konsole joerc explanation

(In reply to comment #113)

> 5) paste it into any editor - empty line isn't empty but contains 8 spaces.

This is probably not so much a bug of konsole, but rather mcview and mcedit
behavior. Both these programs apparently does some optimizations while painting
screen and mcview actually prints these spaces! Or more preciselly it prints
spaces representing a TAB character on the first line in the .joerc file when
you first open it and then when you press PgDn, mcview remebers this first
8-character space is visually "empty" so it erases only the rest of the line.

Look at the attached screenshot - the little line (grave accent) character
denotes cleaned space (originally space with isRealCharacter = false). You will
see that mcview doesn't bother to clean this space.

I have the experience with some more than five years old version of mcedit
(cooledit) which prints text in even more unpredictable ways and which for
example prints one space after each line of source code iff that line was
highlighted by syntax highlighter. (I've actually analyzed bytestream coming
from mcedit do konsole and it's not a konsole fault.) Newer mcedit are much
less pain in that regard.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the konsole-devel mailing list