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:38:22 +0000 (23:38 +0200)
commitea5561874b3061cb053a0fb75a58aedc4eb5fdaf
tree62730c9ee33a14bbaf68caad0990572a27fa0d54
parentda2507ded5eaecc8e7f06b9035c5d1b7cec13b9b
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