summaryrefslogtreecommitdiff
path: root/src/fe-common/core/fe-core-commands.c
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-01-05 09:43:38 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-01-05 09:43:38 +0000
commit0a44c3110116998062d92088b45366594df79acc (patch)
treeb5b61d19c31b55ec796f331cbfd0e1740fdc6285 /src/fe-common/core/fe-core-commands.c
parent1dc07c42bd2f8977181671fd5bb75bd00ac52bfa (diff)
downloadirssi-0a44c3110116998062d92088b45366594df79acc.zip
/HELP: Set indent to 0 when printing text. syntax.pl now changes tabs
to 9 spaces at the start of lines in help files. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1075 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common/core/fe-core-commands.c')
-rw-r--r--src/fe-common/core/fe-core-commands.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/fe-common/core/fe-core-commands.c b/src/fe-common/core/fe-core-commands.c
index 53a9c48a..6d5af624 100644
--- a/src/fe-common/core/fe-core-commands.c
+++ b/src/fe-common/core/fe-core-commands.c
@@ -131,7 +131,11 @@ static int show_help_rec(COMMAND_REC *cmd)
recvlen = read(f, tmpbuf, sizeof(tmpbuf));
ret = line_split(tmpbuf, recvlen, &str, &buffer);
- if (ret > 0) printtext_string(NULL, NULL, MSGLEVEL_CLIENTCRAP, str);
+ if (ret > 0) {
+ str = g_strconcat("%|", str, NULL);
+ printtext_string(NULL, NULL, MSGLEVEL_CLIENTCRAP, str);
+ g_free(str);
+ }
}
while (ret > 0);
line_split_free(buffer);