Mailing List Archive

[6.0] ca5770ada man: Fix rendering of certain sections in vtc(7)
commit ca5770ada1b18e44e6961b92b62d197f5b80863d
Author: Dridi Boukelmoune <dridi.boukelmoune@gmail.com>
Date: Mon Nov 28 17:17:15 2022 +0100

man: Fix rendering of certain sections in vtc(7)

The matching regular expression did not align with the substitution
regular expression.

Refs d2e526ce95d6d8426ec170b4cfc78d41abc07179

diff --git a/doc/sphinx/vtc-syntax.py b/doc/sphinx/vtc-syntax.py
index 33aad14b6..1c40f30d5 100644
--- a/doc/sphinx/vtc-syntax.py
+++ b/doc/sphinx/vtc-syntax.py
@@ -36,7 +36,7 @@ import re
def parse_file(fn, cl, tl, sl):
p = False
section = ""
- resec = re.compile("\s*/\* SECTION: ")
+ resec = re.compile("\s*/?\* SECTION: ")

f = open(fn, "r", encoding="UTF-8")

_______________________________________________
varnish-commit mailing list
varnish-commit@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-commit