Bug 189962 - Pasted text overrides font preferences in chat window
Summary: Pasted text overrides font preferences in chat window
Status: RESOLVED WORKSFORME
Alias: None
Product: kopete
Classification: Unmaintained
Component: Chat Window (show other bugs)
Version: 0.70.2
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Kopete Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-18 13:55 UTC by Sergio PR
Modified: 2009-08-14 19:46 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Font preferences are overriden (101.35 KB, image/png)
2009-04-18 13:56 UTC, Sergio PR
Details
Font preferences are overriden (inline) (74.04 KB, image/png)
2009-04-18 13:57 UTC, Sergio PR
Details
New problem with fonts in Kopete (149.22 KB, image/png)
2009-07-05 08:56 UTC, Sergio PR
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sergio PR 2009-04-18 13:55:18 UTC
Version:           0.70.2 (using KDE 4.2.2)
OS:                Linux
Installed from:    Unlisted Binary Package

I'm using ArchLinux and KDE 4.2.2 from KDEMod (but this happened with KDE 4.2.0 and 4.2.1).

In a chat window, if you paste some formatted text (different colours, sizes and styles), its format is preserved and not forced to your font preferences. In addition, the next time you write in the chat window, almost all your font preferences will be ignored: you'll be using the last font size and style (underline, bold, italic...) that was used in the pasted text, only the colour is preserved.

How to reproduce it:
Enter here using Firefox or Konqueror: http://www.angelfire.com/super/badwebs/main.htm and copy some formated text. Then paste it in a chat window and send it. Now try to write something again.

I'll attach two screenshots showing this bug.
Comment 1 Sergio PR 2009-04-18 13:56:09 UTC
Created attachment 32907 [details]
Font preferences are overriden
Comment 2 Sergio PR 2009-04-18 13:57:29 UTC
Created attachment 32908 [details]
Font preferences are overriden (inline)

As you can see, if you paste a formatted text and then continue writing without sending it, your font preferences are not used again.
Comment 3 Roman Jarosz 2009-05-09 00:56:57 UTC
This is fixed for plain text mode (commit 965446), don't know if it should be also fixed when rich text is on or not?
Comment 4 Sergio PR 2009-05-09 17:54:53 UTC
(In reply to comment #3)
> This is fixed for plain text mode (commit 965446), don't know if it should be
> also fixed when rich text is on or not?

I have KDE 4.2.3 and Qt 4.5.1 and the problem persists on Kopete 0.70.2 :S
Comment 5 Roman Jarosz 2009-05-09 17:57:37 UTC
That's expected because this was fixed in trunk yesterday ;) so it will be in KDE 4.3
Comment 6 Sergio PR 2009-05-24 22:39:29 UTC
(In reply to comment #5)
> That's expected because this was fixed in trunk yesterday ;) so it will be in
> KDE 4.3

I've tried Kopete 0.70.85 from KDE 4.3 beta 1 and the bug is still present :S

Color preferences are not overriden, but font size and hiperlinks... :S
Comment 7 Sergio PR 2009-07-05 08:48:05 UTC
I've tested this on KDE4.3 RC1 from KDE Four LiveCD and now it's working fine :D

But now there's another problem: now your font preferences aren't used in the chat window when you've sent some text. I mean, the text you write is fine in the "textbox", but you send it and it appears in the conversation, it ignores color and style, but not font and size.

In addition, the other person in the chat receives the text without format: it uses default font, size, color and style.

I'll attach some screenshots to show it...
Comment 8 Sergio PR 2009-07-05 08:56:11 UTC
Created attachment 35052 [details]
New problem with fonts in Kopete
Comment 9 Matt Rogers 2009-07-06 03:54:20 UTC
Thanks for confirming that the original bug is fixed. However, your new bug needs a separate report. Please file that separately. Thanks. :)
Comment 10 Sergio PR 2009-07-06 11:35:57 UTC
(In reply to comment #9)
> Thanks for confirming that the original bug is fixed. However, your new bug
> needs a separate report. Please file that separately. Thanks. :)


You're welcome ^^ Thank you for fixing it!

Here is the new report: https://bugs.kde.org/show_bug.cgi?id=199134
I hope you can fix it before 4.3 release :S

Thank you again and keep up the good work!
Comment 11 Sergio PR 2009-08-14 19:46:41 UTC
I think the bug has returned to Kopete 0.70.90 (KDE 4.3 final) when Rich Text is enabled.