From 05b859c0b739a67d540f84b1826d5365bbee8dad Mon Sep 17 00:00:00 2001 From: Griatch Date: Sun, 8 Sep 2019 00:46:02 +0200 Subject: [PATCH] Fix pager output for spawn/list with a very long list. Resolve #1829 --- evennia/commands/default/building.py | 3 ++- evennia/utils/evmore.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/evennia/commands/default/building.py b/evennia/commands/default/building.py index f7ef0c4152..ff601bded3 100644 --- a/evennia/commands/default/building.py +++ b/evennia/commands/default/building.py @@ -2941,7 +2941,8 @@ class CmdSpawn(COMMAND_DEFAULT_CLASS): # import pudb; pudb.set_trace() EvMore(caller, str(protlib.list_prototypes(caller, - tags=self.lhslist)), exit_on_lastpage=True) + tags=self.lhslist)), exit_on_lastpage=True, + justify_kwargs=False) return if 'save' in self.switches: diff --git a/evennia/utils/evmore.py b/evennia/utils/evmore.py index 547c2bcda8..1530e33585 100644 --- a/evennia/utils/evmore.py +++ b/evennia/utils/evmore.py @@ -137,7 +137,8 @@ class EvMore(object): to determine the screen width and will receive all output. justify_kwargs (dict, bool or None, optional): If given, this should be valid keyword arguments to the utils.justify() function. If False, - no justification will be done. + no justification will be done (especially important for handling + fixed-width text content, like tables!). exit_on_lastpage (bool, optional): If reaching the last page without the page being completely filled, exit pager immediately. If unset, another move forward is required to exit. If set, the pager