mirror of
https://github.com/irssi/irssi.git
synced 2026-08-08 19:30:15 +02: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:
parent
1dc07c42bd
commit
0a44c31101
2 changed files with 7 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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++;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue