diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2016-02-23 09:06:18 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2016-02-23 09:06:18 +0200 |
commit | 062e6b023822c7636671da555a7d8a49f292e9ad (patch) | |
tree | 89d8aa263a9ccaf9b5a73b5b1d48f9a7c1d2898b | |
parent | b97b200a4b35f386d0e3ddf2e9502e372b49b598 (diff) | |
download | egawk-062e6b023822c7636671da555a7d8a49f292e9ad.tar.gz egawk-062e6b023822c7636671da555a7d8a49f292e9ad.tar.bz2 egawk-062e6b023822c7636671da555a7d8a49f292e9ad.zip |
Fix sidebar.awk to be usable with old awks.
-rw-r--r-- | doc/ChangeLog | 9 | ||||
-rw-r--r-- | doc/sidebar.awk | 4 |
2 files changed, 10 insertions, 3 deletions
diff --git a/doc/ChangeLog b/doc/ChangeLog index bf5f47f2..87a1bc97 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -1,6 +1,13 @@ +2016-02-23 Arnold D. Robbins <arnold@skeeve.com> + + * sidebar.awk: Globally replace [[:space:]] with [ \t] so that + it will work with old versions of mawk (as found, boo!, on many + Debian-based distributions). Thanks to Yehezkel Bernat for + discovering and reporting the issue. + 2016-02-20 Arnold D. Robbins <arnold@skeeve.com> - * gawktexilin (Bracket Expressions): Add a small note about + * gawktexi.in (Bracket Expressions): Add a small note about Unicode in bracket expressions. 2016-02-18 Arnold D. Robbins <arnold@skeeve.com> diff --git a/doc/sidebar.awk b/doc/sidebar.awk index bb381aa3..98296dcb 100644 --- a/doc/sidebar.awk +++ b/doc/sidebar.awk @@ -28,14 +28,14 @@ BEGIN { } /^@sidebar/ { - sub(/^@sidebar[[:space:]]+/, "", $0) + sub(/^@sidebar[ \t]+/, "", $0) title = $0 body = "" collecting = 1 next } -/^@end[[:space:]]+sidebar[[:space:]]*$/ { +/^@end[ \t]+sidebar[ \t]*$/ { collecting = 0 printf "@cindex sidebar, %s\n", title printf "@ifdocbook\n" |