summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/fe-common/core/fe-core-commands.c6
-rwxr-xr-xsyntax.pl2
2 files changed, 7 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);
diff --git a/syntax.pl b/syntax.pl
index 0694ea22..39a600eb 100755
--- a/syntax.pl
+++ b/syntax.pl
@@ -34,6 +34,8 @@ while (<docs/help/in/*.in>) {
$DATARIVI = $SYNTAX;
} elsif ($DATARIVI =~ /^\S+/) {
chomp $DATARIVI if ($data[$count+1] =~ /^\S+/);
+ } else {
+ $DATARIVI =~ s/^\t/ / while ($DATARIVI =~ /^\t/);
}
$count++;
}