Project

General

Profile

Bug #921

messages with tabulators are not displayed correctly

Added by Toni over 14 years ago. Updated over 14 years ago.

Status:
Feedback
Priority:
Normal
Assignee:
Category:
Quassel GUI (KDE)
Target version:
-
Start date:
02/26/2010
Due date:
% Done:

100%

Estimated time:
Version:
0.5.0
OS:
Linux

Description

When I or someone else posts messages with tabulators, quassel does not output the whole text. In the worst case I can only see an empty line.

I attached a screen shot where you can see the original input at the bottom and what quassel actually shows in the chat log above. The tabulators are distributed as follows:

00000 11111 22222 33333 44444 55555 66666 77777 88888 99999
<tab> 00000 11111 22222 33333 44444 55555 66666 77777 88888 99999
<tab> <tab> 00000 11111 22222 33333 44444 55555 66666 77777 88888 99999
<tab> <tab> <tab> 00000 11111 22222 33333 44444 55555 66666 77777 88888 99999
<tab> <tab> <tab> <tab> 00000 11111 22222 33333 44444 55555 66666 77777 88888 99999
<tab> <tab> <tab> <tab> <tab> 00000 11111 22222 33333 44444 55555 66666 77777 88888 99999
00000 <tab> 11111 <tab> 22222 <tab> 33333 <tab> 44444 <tab> 55555 <tab> 66666 <tab> 77777 <tab> 88888 <tab> 99999

If the window is smaller, line breaks occur too early and still the end of the text is cut.

I think this problem occurs since I use KDE 4.4.0.

My system:
  • Linux udo 2.6.31-gentoo-r6 #1 SMP PREEMPT Fri Dec 4 19:29:31 CET 2009 x86_64 Intel(R) Core(TM)2 Duo CPU E6750 @ 2.66GHz GenuineIntel GNU/Linux
  • Qt 4.6.2
  • KDE Plattform-Version 4.4.00 (KDE 4.4.0)
  • Quassel IRC
    • Version: v0.5.2 (dist-42d7cf2)
    • Protokollversion: 10
    • Kompiliert: Feb 14 2010 00:16:17
    • monolithic build
  • gentoo Use flags for net-irc/quassel: (X) (dbus) (-debug) (kde) (monolithic) (oxygen) (phonon) (-postgres) (server) (ssl) (webkit) linguas: (-cs) (-da) (de) (-fi) (-fr) (-hu) (-it) (-nb_NO) (-ru) (-sl) (-tr) Build Options: -trace
screenshot.png (23.5 KB) screenshot.png Toni, 02/26/2010 05:34 PM
screenshot.png (3.12 KB) screenshot.png Screenshot showing corect tab behavior in the lower part and wrong behavior of the chat log in the upper part. There is one tabulator in front of every “Text”. Toni, 04/26/2010 11:31 PM

History

#1 Updated by Toni over 14 years ago

I forgot to mention that copy&pasting the chat log still works. If I select a line with invisible text and copy it, the invisible part is also copied.

#2 Updated by johu over 14 years ago

  • Priority changed from High to Normal

#3 Updated by Sputnick over 14 years ago

  • Status changed from New to Assigned
  • Assignee set to Sputnick
  • Target version set to 0.6.0

#4 Updated by johu over 14 years ago

  • Status changed from Assigned to Resolved
  • % Done changed from 0 to 100

#5 Updated by Toni over 14 years ago

I think the bug tracker is missing a bug status for “workaround”. I do not think the bug is really resolved. I noticed the following problems:
  • Tabulators in the chat log are constantly replaced by 8 spaces. This is not the idea of tabulators since they are used to align text in columns. The screenshot shows the correct behavior in the input box and the wrong behavior in the chat log.
  • Consecutive white spaces (including tabs) are replaced by one space in the input history, which is simply not necessary and inconsistent with the behavior of the chat log. Preceding (and sometimes also traling) spaces are removed completely.

I’m not sure if I should open new bug reports for these problems – I will do if you tell me so.

I used quassel version 0.6.1.

#6 Updated by flamingspinach over 14 years ago

  • Status changed from Resolved to Feedback
  • Target version deleted (0.6.0)

I think this can be "fixed" by storing tabs internally as \t, or something like %T if really necessary, and converting them on the fly for display. Instead of adding 8 spaces, one could pad to the nearest multiple of 8, probably. The input box currently accepts tab characters, anyway (typed as shift+tab, though personally I think that should be reserved for tabbing through the interface's tab stops, as in most applications).

Also available in: Atom PDF