10
0
mirror of https://gitlab.com/scemama/irpf90.git synced 2024-12-22 12:23:32 +01:00

Fix for sphinx functions

This commit is contained in:
Anthony Scemama 2024-03-20 16:05:42 +01:00
parent 4ab1b175fc
commit ba1a2837aa

View File

@ -222,7 +222,7 @@ def do_print_subroutines_rst(sub):
filename = sub.line.filename filename = sub.line.filename
name = sub.name name = sub.name
file = open("%s%s.rst"%(mandir,sub.name), "w") file = open("%s%s.rst"%(mandir,sub.name), "w")
print(".. c:function:: %s:\n"%(sub.name.lower()), file=file) print(".. c:macro:: %s:\n"%(sub.name.lower()), file=file)
print("", file=file) print("", file=file)
print(" File : :file:`"+filename+"`", file=file) print(" File : :file:`"+filename+"`", file=file)
print("", file=file) print("", file=file)