[master] 03047de64 fix vmodtool generated RST headers

Nils Goroll nils.goroll at uplex.de
Tue Feb 5 14:23:08 UTC 2019


commit 03047de644276f13fdf4c10fa65f0828b97f4bed
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Tue Feb 5 15:19:41 2019 +0100

    fix vmodtool generated RST headers
    
    Neither the vmod_ default $Prefix not an author-supplied $Prefix has
    got anything to do with the actual name of the vmod.

diff --git a/lib/libvcc/vmodtool.py b/lib/libvcc/vmodtool.py
index 3ad485273..e31da1f7b 100755
--- a/lib/libvcc/vmodtool.py
+++ b/lib/libvcc/vmodtool.py
@@ -585,7 +585,7 @@ class ModuleStanza(Stanza):
     def rsthead(self, fo, man):
 
         if man:
-            write_rst_hdr(fo, self.vcc.sympfx + self.vcc.modname, "=", "=")
+            write_rst_hdr(fo, "VMOD " + self.vcc.modname, "=", "=")
             write_rst_hdr(fo, self.vcc.moddesc, "-", "-")
             fo.write("\n")
             fo.write(":Manual section: " + self.vcc.mansection + "\n")
@@ -593,7 +593,7 @@ class ModuleStanza(Stanza):
             if self.rstlbl:
                 fo.write('\n.. _' + self.rstlbl + ':\n')
             write_rst_hdr(fo,
-                          self.vcc.sympfx + self.vcc.modname +
+                          "VMOD " + self.vcc.modname +
                           ' - ' + self.vcc.moddesc,
                           "=", "=")
 


More information about the varnish-commit mailing list