Skip to content

Commit d266121

Browse files
committed
misc: small fix or general refactoring i did not bother commenting
1 parent fb1de3a commit d266121

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nerve/cli/ns.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ def print_namespaces() -> None:
2020
for name, func in inspect.getmembers(module, inspect.isfunction):
2121
if name[0] != "_" and func.__module__ == module.__name__:
2222
doc = func.__doc__ or ""
23-
print(f"| `{name}` | <pre>{doc.strip().replace('\n', '<br>')}</pre> |")
23+
doc = doc.strip().replace("\n", "<br>")
24+
print(f"| `{name}` | <pre>{doc}</pre> |")
2425

2526
print("")

0 commit comments

Comments
 (0)