[master] 07cc58f Allow empty titles
Guillaume Quintard
guillaume at varnish-software.com
Mon Jun 6 11:01:09 CEST 2016
commit 07cc58ff3107a4d253ef87637b1bac2864113985
Author: Guillaume Quintard <guillaume at varnish-software.com>
Date: Wed Jun 1 17:50:24 2016 +0200
Allow empty titles
Useful to order sections without have a title.
diff --git a/doc/sphinx/vtc-syntax.awk b/doc/sphinx/vtc-syntax.awk
index e481c26..58ce4ad 100644
--- a/doc/sphinx/vtc-syntax.awk
+++ b/doc/sphinx/vtc-syntax.awk
@@ -13,7 +13,11 @@ p && $0 !~ "[ /]* SECTION: " {
$0 ~ "[ /]* SECTION: " {
section = $3;
sl[len++] = section;
- tl[section] = gensub(/[\t ]*\/?\* SECTION: [^ ]+ +/, "", "1", $0);
+ if ($4) {
+ tl[section] = gensub(/[\t ]*\/?\* SECTION: [^ ]+ +/, "", "1", $0);
+ } else {
+ tl[section] = "";
+ }
p = 1;
}
More information about the varnish-commit
mailing list