mirror of
https://github.com/irssi/irssi.git
synced 2024-11-03 04:27:19 -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:
parent
1dc07c42bd
commit
0a44c31101
@ -131,7 +131,11 @@ static int show_help_rec(COMMAND_REC *cmd)
|
|||||||
recvlen = read(f, tmpbuf, sizeof(tmpbuf));
|
recvlen = read(f, tmpbuf, sizeof(tmpbuf));
|
||||||
|
|
||||||
ret = line_split(tmpbuf, recvlen, &str, &buffer);
|
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);
|
while (ret > 0);
|
||||||
line_split_free(buffer);
|
line_split_free(buffer);
|
||||||
|
@ -34,6 +34,8 @@ while (<docs/help/in/*.in>) {
|
|||||||
$DATARIVI = $SYNTAX;
|
$DATARIVI = $SYNTAX;
|
||||||
} elsif ($DATARIVI =~ /^\S+/) {
|
} elsif ($DATARIVI =~ /^\S+/) {
|
||||||
chomp $DATARIVI if ($data[$count+1] =~ /^\S+/);
|
chomp $DATARIVI if ($data[$count+1] =~ /^\S+/);
|
||||||
|
} else {
|
||||||
|
$DATARIVI =~ s/^\t/ / while ($DATARIVI =~ /^\t/);
|
||||||
}
|
}
|
||||||
$count++;
|
$count++;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user