[master] b6c7bf9d6 Polish $Restrict doc formatting

Nils Goroll nils.goroll at uplex.de
Tue Jun 13 13:27:09 UTC 2023


commit b6c7bf9d6b87c9f6f21d17f3fee54d6c3bdb9917
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Tue Jun 13 15:19:11 2023 +0200

    Polish $Restrict doc formatting
    
    Format individual subroutines as code, add a trailing period.

diff --git a/lib/libvcc/vmodtool.py b/lib/libvcc/vmodtool.py
index 4112e05e8..dbb00fba6 100755
--- a/lib/libvcc/vmodtool.py
+++ b/lib/libvcc/vmodtool.py
@@ -720,7 +720,8 @@ class FunctionMethodStanzaBase(Stanza):
     def rstdoc(self, fo, unused_man):
         super().rstdoc(fo,unused_man)
         if (self.restrict is not None):
-            fo.write("\nRestricted to: ``%s``\n\n" % ', '.join(self.restrict.restrict_toks))
+            fo.write("\nRestricted to: ``%s``.\n\n" %
+                     '``, ``'.join(self.restrict.restrict_toks))
             self.restrict.rstdoc(fo, unused_man)
 
     def json(self, jl):


More information about the varnish-commit mailing list