mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Merge branch 'master' into develop
This commit is contained in:
commit
d95a9447e7
1 changed files with 2 additions and 0 deletions
|
|
@ -2602,6 +2602,8 @@ class CmdExamine(ObjManipCommand):
|
|||
max_width = -1
|
||||
for block in output.values():
|
||||
max_width = max(max_width, max(display_len(line) for line in block.split("\n")))
|
||||
max_width = max(0, min(self.client_width(), max_width))
|
||||
|
||||
sep = self.separator * max_width
|
||||
mainstr = "\n".join(f"{hclr}{header}|n: {block}" for (header, block) in output.items())
|
||||
return f"{sep}\n{mainstr}\n{sep}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue