1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

/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
This commit is contained in:
Timo Sirainen 2001-01-05 09:43:38 +00:00 committed by cras
parent 1dc07c42bd
commit 0a44c31101
2 changed files with 7 additions and 1 deletions

View File

@ -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);

View File

@ -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++;
}