aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2016-02-23 09:06:18 +0200
committerArnold D. Robbins <arnold@skeeve.com>2016-02-23 09:06:18 +0200
commit062e6b023822c7636671da555a7d8a49f292e9ad (patch)
tree89d8aa263a9ccaf9b5a73b5b1d48f9a7c1d2898b
parentb97b200a4b35f386d0e3ddf2e9502e372b49b598 (diff)
downloadegawk-062e6b023822c7636671da555a7d8a49f292e9ad.tar.gz
egawk-062e6b023822c7636671da555a7d8a49f292e9ad.tar.bz2
egawk-062e6b023822c7636671da555a7d8a49f292e9ad.zip
Fix sidebar.awk to be usable with old awks.
-rw-r--r--doc/ChangeLog9
-rw-r--r--doc/sidebar.awk4
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"