Replace tab characters by 8 spaces
authorManuel Nickschas <sputnick@quassel-irc.org>
Tue, 13 Apr 2010 21:38:22 +0000 (23:38 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Tue, 13 Apr 2010 21:42:10 +0000 (23:42 +0200)
commit55f8b0001cf7c26a05eac2d097aab2b06eface6d
tree816c3eda224ff4a804ee1e78bf2e82710a1751e5
parent7582ce11d6fb8b5123f7ac4794c57e981a634e93
Replace tab characters by 8 spaces

Our layout engine can't properly handle tabs (and it's doubtful how they should be handled
anyway on random pastes), and it breaks while trying. So now we replace tabs by 8 spaces.

Note that Konversation (and probably some others) currently sends a \t for the "italics" format.
This is non-standard and not very consistent across clients, so I chose to not have a tab trigger italics.
So for pastes, we show something mostly correct, while italic text sent from Konversation will cause
some whitespace instead. I think that's a better tradeoff than the other way round (showing italics
when tabs are pasted).
src/uisupport/uistyle.cpp