1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-06-02 21:36:05 +02:00

Fix helpfiles.

This commit is contained in:
Bart Schaefer 2000-09-03 05:22:59 +00:00
parent ac9d17a597
commit f1135dfd5f
2 changed files with 7 additions and 3 deletions

View File

@ -1,5 +1,8 @@
2000-09-02 Bart Schaefer <schaefer@zsh.org>
* 12725: Util/helpfiles: Recognize more end-of-page patterns, and
find the end of the builtins section correctly.
* 12723: Util/reporter: Modernize variables and options handling;
add zstyle to output.

View File

@ -109,8 +109,9 @@ BUILTINS: while (<>) {
$undented && &doprint($_);
while (defined($_ = <>) && /(^\w)|(^\s*$)/) {
last BUILTINS if /^STARTUP\/SHUTDOWN FILES/;
last if /^zsh.*\s\d$/; # GNU nroff -man end-of-page marker
}
if (/^\s*Page/) {
if (/^\s*Page/ || /^zsh.*\s\d$/) {
do {
$_ = <>;
} while (defined($_) && /^\s*$/);
@ -121,8 +122,8 @@ BUILTINS: while (<>) {
}
}
# In zshall, the zshcompctl manual page comes after the
# builtins.
if (/ZSHCOMPCTL\(1\).*ZSHCOMPCTL\(1\)/) {
# builtins for 3.0, and zshzle comes after it for 3.1.
if (/ZSH(COMPCTL|ZLE)\(1\).*ZSH(COMPCTL|ZLE)\(1\)/) {
last BUILTINS;
}
if (/^(\s*)/ && length($1) < $indent) {