From 11d63f3740fd49eb32b5f604c17452913f9ae3d5 Mon Sep 17 00:00:00 2001 From: Bas Pape Date: Wed, 15 May 2013 00:01:11 +0200 Subject: [PATCH 1/1] Fix replacing Horizontal Tab with the unicode char Commit 4676ff82af669595edaf090c97a28161d67782a1 caused horizontal tabs to be replaced with the HT character of the unicode control char block. Fix that by replacing it with 8 spaces again. --- src/uisupport/uistyle.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/uisupport/uistyle.cpp b/src/uisupport/uistyle.cpp index 5fd929a5..dd530bd3 100644 --- a/src/uisupport/uistyle.cpp +++ b/src/uisupport/uistyle.cpp @@ -572,6 +572,9 @@ QString UiStyle::mircToInternal(const QString &mirc_) case '\x0f': mirc += "%O"; break; + case '\x09': + mirc += " "; + break; case '\x12': case '\x16': mirc += "%R"; @@ -589,10 +592,6 @@ QString UiStyle::mircToInternal(const QString &mirc_) mirc += QChar(0x2400 + c.unicode()); } } else { - if (c == '\t') { - mirc += " "; - continue; - } if (c == '%') mirc += c; mirc += c; -- 2.20.1