From 050a665243bf839342fdc3367838ec7539f5ab19 Mon Sep 17 00:00:00 2001 From: Griatch Date: Sun, 23 Jun 2019 23:53:56 +0200 Subject: [PATCH] Some cleanup, typo-fixes --- CHANGELOG.md | 2 +- evennia/commands/command.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 772cdcb5a2..cab847f74d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,7 +12,7 @@ ### Commands -- Remove `@`-prefix from all default commands (prefixes still works) +- Remove `@`-prefix from all default commands (prefixes still work, optional) - Removed default `@delaccount` command, incorporating as `@account/delete` instead. Added confirmation question. - Add new `@force` command to have another object perform a command. diff --git a/evennia/commands/command.py b/evennia/commands/command.py index 8712772bc9..28d5fcb1d7 100644 --- a/evennia/commands/command.py +++ b/evennia/commands/command.py @@ -537,7 +537,7 @@ Command {self} has no defined `func()` - showing on-command variables: def _render_decoration(self, header_text=None, fill_character=None, edge_character=None, mode='header', color_header=True, width=None): """ - Helper for formatting a string into a prety display, for a header, separator or footer. + Helper for formatting a string into a pretty display, for a header, separator or footer. Kwargs: header_text (str): Text to include in header. @@ -596,7 +596,7 @@ Command {self} has no defined `func()` - showing on-command variables: final_send = left_fill + ANSIString(center_string) + right_fill return final_send - def style_header(self, *args, **kwargs): + def styled_header(self, *args, **kwargs): """ Create a pretty header. """ @@ -605,7 +605,7 @@ Command {self} has no defined `func()` - showing on-command variables: kwargs['mode'] = 'header' return self._render_decoration(*args, **kwargs) - def style_separator(self, *args, **kwargs): + def styled_separator(self, *args, **kwargs): """ Create a separator. @@ -614,7 +614,7 @@ Command {self} has no defined `func()` - showing on-command variables: kwargs['mode'] = 'separator' return self._render_decoration(*args, **kwargs) - def style_footer(self, *args, **kwargs): + def styled_footer(self, *args, **kwargs): """ Create a pretty footer.