bug 1171: make person a hyperlink in report.mdwn
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 21 Dec 2023 17:59:53 +0000 (17:59 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 21 Dec 2023 17:59:53 +0000 (17:59 +0000)
src/budget_sync/main.py

index 7ddcebfddad96472013de51fb935d377eaaf987a..2a388c885ce68a49bcb9dd98b6be853872cbbde6 100644 (file)
@@ -161,9 +161,9 @@ def summarize_milestones(f, budget_graph, detail=False):
 
         # and one to display people
         for person in budget_graph.milestone_people[milestone]:
-            print(spc("    %-30s - %s" % (person.identifier,
-                                            person.full_name)),
-                  file=f)
+            ident = "<a href='../mdwn/%s/'>%s</a>"
+            ident %= (person.identifier, person.identifier)
+            print(spc("    %-30s - %s" % (ident, person.full_name)), file=f)
         print("", file=f)
 
     # now do trees