[gi-docgen/link-fixes: 1/3] utils: Append `()` to function links
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gi-docgen/link-fixes: 1/3] utils: Append `()` to function links
- Date: Sat, 25 Sep 2021 15:41:39 +0000 (UTC)
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]