[gi-docgen/link-fixes: 1/3] utils: Append `()` to function links




commit d97ca57ec4e3609d5fe7472b23e5c38aa60fe732
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Sat Sep 25 16:26:24 2021 +0100

    utils: Append `()` to function links
    
    Makes it easier to visually distinguish functions from types.

 gidocgen/utils.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gidocgen/utils.py b/gidocgen/utils.py
index 27e3f82..8ae0478 100644
--- a/gidocgen/utils.py
+++ b/gidocgen/utils.py
@@ -576,7 +576,7 @@ class LinkGenerator:
         elif self._fragment == 'signal':
             return f"<code>{self._type}::{self._signal_name}</code>"
         elif self._fragment in ['ctor', 'func', 'method', 'class_method']:
-            return f"{self._symbol_name}"
+            return f"<code>{self._symbol_name}()</code>"
         elif self._fragment == 'vfunc':
             return f"<code>{self._ns}.{self._type}.{self._vfunc_name}</code>"
         else:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]